Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

find days with name between two dates in php

$from_date ='01-01-2013';
$to_date ='05-01-2013';

$from_date = new DateTime($from_date);
$to_date = new DateTime($to_date);

for ($date = $from_date; $date <= $to_date; $date->modify('+1 day')) {
  echo $date->format('l') . "
";
}
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #find #days #dates #php
ADD COMMENT
Topic
Name
4+4 =