Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php loop through start and end date

$begin = new DateTime( "2015-07-03" );
$end   = new DateTime( "2015-07-09" );

for($i = $begin; $i <= $end; $i->modify('+1 day')){
    echo $i->format("Y-m-d");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #loop #start #date
ADD COMMENT
Topic
Name
2+6 =