note 54611 deleted from function.checkdate by bjori
| From: | bjori@php.net | Date: | Wed, 11 Oct 2006 08:25:35 +0000 |
| Subject: | note 54611 deleted from function.checkdate by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-118392@lists.php.net to get a copy of this message | ||
Note Submitter: cristianDOTzuddas [SPAM] gmail DOT com
----
This function returns TRUE if the passed string contains a valid MySQL date.
The allowed format is YYYY-MM-DD and the supported range is from '1000-01-01' to
'9999-12-31' (MySQL limitations).
Here is the code:
http://www.codeflower.com/index.php?a=showCode&id=36
Ex.:
is_valid_mysql_date('2005-05-21'); <-- TRUE
is_valid_mysql_date('2005-5-30'); <-- FALSE