To add to Noah's answers, Zend_Validate_Date really awful and inflexible; that is, if you want to have a more forgiving policy for entering dates.
Now, if ZF was sent with Zend_Filter_Date , which normalizes various trivial (albeit very syntactic) date picker / user input formats, this could be a different story, since you can filter the date in a normalized format, then confirm that it is in this format . But this is not so.
Despite this, there are many reasonable solutions to this problem. Probably the easiest one:
$validator = new \Zend_Validate_Callback(function($value) { return (bool)strtotime($value); });
Personally, it doesnβt matter to me whether the date / date is included in yyyy / MM / dd, September 23, 2012 or as β-2 weeksβ - all I really care about is the ability to strtotime enough to parse it.
source share