Absolutely you are doing in the right way:) But pls make sure that string comparison is from left to right. For example, "16" is larger than "15-12-01".
Alex ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 08, 2001 8:16 PM 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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]