If you put the date in YYYYMMDD format you can compare
the numbers.
http://www.php.net/manual/en/function.date.php
Jeff Oien

> Hi,
> Since there is no Date type in php, is there a way to compare dates?
> 
> Something like:
> 
> if ((3/8/2001) < (3/9/2001)){
>    // Date is newer
> }
> 
> Thanks,
> Chris
> 

-- 
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]

Reply via email to