Languages :: PHP :: Knowledge Base : How to generate in PHP all dates in a given range ? |
|||
| By: VGR |
Date: 18/03/2005 11:48:58 |
Points: 0 | Status: Answered Quality : Good |
|
Dated 04/06/2003 <?php $Startdate='2003-06-29'; $Enddate='2003-07-02'; // go echo "$Startdate "; $curdate=$Startdate; While ($Enddate<>$curdate) { $curdate=date('Y-m-d',strtotime($curdate)+86400); echo "$curdate "; } // while not ended ?> |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








