RE: [PHP] Comparing Dates
| From: | Jack Dempsey | Date: | Sun, 09 Dec 2001 01:44:46 +0000 |
| Subject: | RE: [PHP] Comparing Dates | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77136@lists.php.net to get a copy of this message | ||
you could pass the values to mktime and compare
-----Original Message-----
From: natesanden@hotmail.com [mailto:natesanden@hotmail.com]
Sent: Saturday, December 08, 2001 8:17 PM
To: php-general@lists.php.net
Subject: [PHP] Comparing Dates
I'm trying to do a check on a date, to see if it's after the current date,
so basically i'm doing an
if(date("d-m-y")>"15-12-01") { do something }
I know that's obviously not the right way to do it, but can someone help me
out?