I think i would use a date-filter first, that converts the date into a
specific format and then try to validate that specific format. If the filter
is not able to recognize the format, then it won't validate.
Dealing with different kinds of formats is more a responsibility of a filter
than a validator imo.


Jan Pieper wrote:
> 
> Is it possible to validate a string against each date/datetime format? 
> The validation should stop when a valid format is found.
> 
> -- Jan
> 
> 


-----
http://devshed.excudo.net http://devshed.excudo.net 
-- 
View this message in context: 
http://www.nabble.com/date-validation-without-specific-format-tp21070053p21071774.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to