Hello list,

I've got an application where dates need to be validated, but the
exactness of the dates varies.

Sometimes

* only year (4 digits)
* only year (4 digits) and month (2 digits)
* only year (4 digits), month (2 digits) and day of month (2 digits)
* etc

is required.

Is it possible to tell Zend_Validate_Date / Zend_Date that for the
given input and locale I require a combination of parts of a date (as
above) without having to specify formats for every locale - in short,
I need these parts, here is the locale, now validate?

Examples (en_US)
* 2012
* 2012/02
* 2012/02/17

Examples (de_DE)
* 2012
* 02/2012
* 17.02.2017


Best regards,

Andreas

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to