checkdate function
| From: | tech at leatherlink dot net | Date: | Tue, 01 Apr 2003 05:46:00 +0000 |
| Subject: | checkdate function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-141785@lists.php.net to get a copy of this message | ||
checkdate function verifies whether the date is valid or not by taking month,
day and year as arguments.
The problem is when someone enters a three digit year by mistake (200 instead
of 2003), this function does not catch it. We are separating the year part
from the string and validating separately to solve this problem. Is there a
better way to do it?
Siva
http://www.leatherlink.net/