|
Posted by Geoff Berrow on 04/01/06 10:57
Message-ID: <1143876015.314691.188990@z34g2000cwc.googlegroups.com> from
pauld contained the following:
>it goes on until the day is 99 and then loops again.
>so how do I tell it that $enddate is in the same date format asthe
>start date
Use timestamps
$enddate=strtotime('now');
for ($dl=strtotime('2006-3-1');$dl < $enddate;$dl=$dl+24*60*60)
{
print date('Y-m-d',$dl)."<br>";
}
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|