ZF-4382: Use Zend_Date::<CONST> for Zend_Validate_Date


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.


Simply use Zend_Locale's getDateFormat() or getTranslation() or getTranslationList() methods.

They all provide you with the localized formats you can use anywhere.

New feature integrated with r14121