I am suppose to let the user enter a DateTime format, but I need to validate it to check if it is acceptable. The user might enter \"yyyy-MM-dd\" and it would be fine, but t
My solution was to mark the input-field as read-only and allow users to change the value only by jqueryui datepicker.
It is intuitive. You can specify your preferred format and need only to validate this one format.