note 64092 deleted from function.date by derick

From: Date: Sun, 11 Jun 2006 11:45:32 +0000
Subject: note 64092 deleted from function.date by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-114260@lists.php.net to get a copy of this message
Note Submitter: sudiptadatta007 at gmail dot com ---- 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 (#114260) next »