@NightShift58Mar 02.2007 — #The closest you get is by using strtotime().
If the function returns anything besides a "-1" (or false, starting with PHP 5.1.0), then you've got a valid date/time... It's a bit iffy, I know...[code=php]<?php IF (strtotime($str) !== FALSE AND strtotime($str) <> -1) : // Possibly a valid date/time ELSE : // Definitely not a valid date/time ENDIF; ?>[/code]
@NogDogMar 03.2007 — #If you have the numeric values for year, month, and day (either explicitly or else parsed from the input value), you can use the [url=htp://www.php.net/checkdate]checkdate() function[/url] to verify that it's a legitimate date.