Re: Compare dates
| From: | sven | Date: | Thu, 05 Jun 2003 08:33:54 +0000 |
| Subject: | Re: Compare dates | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150305@lists.php.net to get a copy of this message | ||
you can work with a timestamp.
mktime() changes your date into a number you can sort, compare, ...
ciao SVEN
"Shaun" <shaun@mania.plus.com> schrieb im Newsbeitrag
news:20030605082841.32295.qmail@pb1.pair.com...
> Hi,
>
> I have two dates retrieved from a database stored as variables: $mindate
and
> $maxdate, how can i compare the two with PHP so i can loop and increment
> i.e.
>
> while($mindate < $maxdate){
> //do some stuff
> $mindate++;
> }
>
> Thanks for your help
>
>