Issues

ZF-2003: Zend_Validate_Date to support more formats than YYYY-MM-DD

Issue Type: New Feature Created: 2007-09-27T09:29:26.000+0000 Last Updated: 2008-02-26T12:56:05.000+0000 Status: Resolved Fix version(s): - 1.0.4 (26/Feb/08)

Reporter: Darby Felton (darby) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:

Description

Zend_Validate_Date currently requires an input format of YYYY-MM-DD, such as 2007-03-17. In the spirit of flexibility, the validation class should accept various other formats. Further, it should make use of Zend_Date, for DRYer code.

Priority minor since it is trivial to preformat a date such that it follows the YYYY-MM-DD format.

Comments

Posted by Pelle Wessman (voxpelli) on 2007-09-28T06:27:45.000+0000

Can add that it would be nice to be able to pass an array as the value in the same manner as an array can be passed to the Zend_Date-constructor because in my application I got the values from three different form-fields and having to make a string out of those before validating was weird and not very handy when used with the Zend_Filter_Input-object.

In some way it should be able to be easier used with Zend_Filter_Input and different fields as well as other formats of strings as you suggest.

Posted by Thomas Weidner (thomas) on 2008-01-18T14:23:17.000+0000

Integrated with SVN-7498

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts