If PHP is unable to convert your string into a timestamp, it will return -1.
<? $mydate = strtotime("Christmas 1979"); if ($mydate == -1) { print "Date conversion failed!"; } else { print "Date conversion succeeded!"; } ?>