> TBH, I'd build a custom validator for this. The date validator as it
> currently stands checks to ensure the provided date is valid -- and as
> such needs the full date. What you're describing is a very specific
> strategy that allows for multiple specifications, dependent on locale.

Exactly.

> Within your validator, I'd determine what segments I had, and then add
> data to them in order to validate them against Zend_Validate_Date -- so,
> for instance, if you got just the year, add month 01 and day 01, and
> validate; if you go the year and month, add day 01 and validate;
> otherwise, validate the entire date.

Thanks a lot for your reply, Matthew. I'll dig into this and see what can be 
achieved.


Best regards,

Andreas
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to