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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php