Ron Piggott (PHP) wrote:
preg_match('/^(\d{4})-(\d\d)-(\d\d)\z/', $s, $m) && checkdate($m[2], $m[3], $m[1])Is there a PHP function which verifies a valid date has been entered (YYYY-MM-DD)? Ron
Arpad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php