Of course it's true...
What would you have expected ?

Please see the documentation of Zend_Date for details of what you've defined...

m = Minute... minimum one digit
d = Day... minimum one digit
YYYY = ISO Year... minimum 4 digits

Minute= 19, Day = 11, Year = 2001... is a valid date as all other fields are automatically filled with standard values...
Month 1, Hour 0, Second 0...

If you want a strict validation see details for isDate and the general options for Zend_Date.

Greetings
Thomas
I18N Team Leader

----- Original Message ----- From: "Kexiao Liao" <[EMAIL PROTECTED]>
To: <fw-general@lists.zend.com>
Sent: Friday, September 21, 2007 7:40 PM
Subject: [fw-general] 19/11/2001 a valid date for the format 'm/d/yyyy' by using Zend_Date::isDate



I am not sure if this is a bug for Zend_Date::isDate method, for the
following testing date the $result is true.

$zDate = new Zend_Date();
$input = '19/11/2001';
$result = $zDate->isDate($input,'m/d/YYYY');
--
View this message in context: http://www.nabble.com/19-11-2001-a-valid-date-for-the-format-%27m-d-yyyy%27-by-using-Zend_Date%3A%3AisDate-tf4497535s16154.html#a12826403 Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to