RE: [PHP] Date Question
| From: | Jeff Oien | Date: | Thu, 08 Mar 2001 17:17:16 +0000 |
| Subject: | RE: [PHP] Date Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43036@lists.php.net to get a copy of this message | ||
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
>