Puoi usare http://www.php.net/mktime per confrontare una data specifica con il valore restituito da http://www.php.net/time