Re: A date n the future

From: Date: Tue, 17 Feb 2004 10:50:55 +0000
Subject: Re: A date n the future
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177922@lists.php.net to get a copy of this message
Shaun wrote:
How can i tell if one date occurs before another date in the format yyyy-mm-dd?
$date1 = '2004-01-01'; $date2 = '2004-02-01'; if (strtotime($date1) < strtotime($date2)) {
    ...
} -- Stuart

« previous php.general (#177922) next »