ZF-4382: Use Zend_Date:: for Zend_Validate_Date

Issue Type: New Feature Created: 2008-09-26T00:44:10.000+0000 Last Updated: 2009-02-20T05:58:18.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Dalibor Karlovic (dkarlovi) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

  • Zend_Locale
  • Zend_Validate

Related issues: Attachments:


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.


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

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.