ZF-4382: Use Zend_Date::<CONST> for Zend_Validate_Date
Description
It would be nice to be able to do (inside instanceof Zend_Form)
$dateValidate = Zend_Validate_Date(Zend_Date::DATE_FULL);
$this->addElement('text', 'date', array( 'validators' => array($dateValidate) ) );
Now, you have to set the actual format.
Comments
Posted by Thomas Weidner (thomas) on 2008-09-26T01:10:33.000+0000
Simply use Zend_Locale's getDateFormat() or getTranslation() or getTranslationList() methods.
They all provide you with the localized formats you can use anywhere.
Posted by Thomas Weidner (thomas) on 2009-02-20T05:58:16.000+0000
New feature integrated with r14121