comparing dates works sometimes and fails another time!
| From: | kaab kaoutar | Date: | Wed, 28 Mar 2001 09:50:47 +0000 |
| Subject: | comparing dates works sometimes and fails another time! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45860@lists.php.net to get a copy of this message | ||
Hi!
$date1="2001-1-7";$date2="2001-1-14";
if ($date1>=$date2) echo "date1 is greater then date2";
else echo "date2 is greater then date1";
the result is the first :(
but it works for other dates!
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.