note 64091 deleted from function.date by nlopess

From: Date: Fri, 07 Apr 2006 08:52:53 +0000
Subject: note 64091 deleted from function.date by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-107501@lists.php.net to get a copy of this message
Note Submitter: ---- An example to loop though date..... $mydt="01/20/2006"; $startdt=strtotime($mydt,time()); $enddt=strtotime("+2 months",$startdt); for($curdt=$startdt;$curdt<=$enddt;$curdt=strtotime("+1 days",$curdt)) { echo("CURRENT DT = " . date("Y-m-d",$curdt) . "<br>" ); }

« previous php.notes (#107501) next »