Re: date question

From: Date: Thu, 20 Nov 2003 13:25:17 +0000
Subject: Re: date question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170407@lists.php.net to get a copy of this message
Martin Cameron wrote:
$ndays=14; function get_next_dates($ndays) { $today=date("m-d-Y",mktime(0,0,0,date("m"),date("d"),date("Y"))); $forward_date=date("m-d-Y",mktime(0,0,0,date("m"),date("d")+$few_days,date("Y"))); print "<h1>$today === $few_days === $forward_date</h1>"; for($i=0;$i<$ndays;$i++) { $new_days_array[]=date("m-d-Y",mktime(0,0,0,date("m"),date("d")+$i,date("Y"))); } return($new_days_array); }
What's the question? -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#170407) next »