note 54611 added to function.checkdate
| From: | cristianDOTzuddas | Date: | Sat, 09 Jul 2005 09:38:46 +0000 |
| Subject: | note 54611 added to function.checkdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91711@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.checkdate.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54611
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54611&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54611&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54611&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54611&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54611&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54611&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54611&report=yes
Search -- http://master.php.net/manage/user-notes.php