RE: [PHP] Want to compare dates

From: Date: Mon, 07 Apr 2003 06:43:15 +0000
Subject: RE: [PHP] Want to compare dates
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142647@lists.php.net to get a copy of this message
if (strtotime($FromDate) > strtotime($ToDate)) might just do the job. Niklas -----Original Message----- From: Manisha [mailto:manisha@aurica.com] Sent: 7. huhtikuuta 2003 9:34 To: php-general@lists.php.net Subject: [PHP] Want to compare dates My dates are in the string form '2003/4/3' (YYYY/MM/DD) I am trying to compare 2 dates but giving some wrong o/p when I try to compare 2003/4/3 and 2003/4/10 - comparing like if (fromdate > todate) {} Please let me know the good way of comparing it. Thanking in advance Regards Manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ########################################### This message has been scanned by F-Secure Anti-Virus for Internet Mail. For more information, connect to http://www.F-Secure.com/ ########################################### This message has been scanned by F-Secure Anti-Virus for Internet Mail. For more information, connect to http://www.F-Secure.com/

« previous php.general (#142647) next »