Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.8.6

Request #997 validate:date minium and maximum accept Date objects
Submitted: 2004-03-11 13:53 UTC
From: alan_k Assigned: pajoye
Status: Closed Package: Validate
PHP Version: 4.3.4 OS: all
Roadmaps: (Not assigned)    
Subscription  


 [2004-03-11 13:53 UTC] alan_k
Description: ------------ feature request: Validate::date($_POST['....'], 'format'=> '%d/%m/%Y', 'max'=> new Date('2000-02-03'), would be nice.. if (is_a($max,'Date'))....

Comments

 [2004-12-20 21:07 UTC] dufuz
This is a feature request like alan states.
 [2005-04-04 09:11 UTC] roehr at zilleon dot com
Please apply the following two diffs to Validate.php and tests/date.php: http://www.zilleon.de/PEAR/Validate/Validate.diff.txt http://www.zilleon.de/PEAR/Validate/tests/date.diff.txt The complete source of the two files can be seen here: http://www.zilleon.de/PEAR/Validate/Validate.php.txt http://www.zilleon.de/PEAR/Validate/tests/date.php.txt This will provide the requested feature. Thanks and best regards, Torsten Roehr
 [2005-04-04 11:32 UTC] dufuz
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.