![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: how do you get a list of all dates between two dates more than a day apart?
From: Adam Plocher <aplocher@gmail.com>
Date: Sat Jan 21 2006 - 00:03:57 CET
How about something like this....
<?
$init_date = strtotime($start);
$offset = $dst_date-$init_date;
$dates = floor($offset/60/60/24) + 1;
for ($i = 0; $i < $dates; $i++)
|