<input type = "date" name = "myDate" onchange = ""> //this is input date
When the user picks a date then it wants to change based on above date How to change based on given date please help me..!
<table class="table table-bordered" id="thbg">
<thead><td></td>
<th>Project</th>
<th>Activity</th>
<th>Bill Type</th>
<?php
$day = "1";
$month = "11";
$year = "2017";
$start_date = $day."-".$month."-".$year;
$start_time = strtotime($start_date);
$end_time = strtotime("+1 week", $start_time);
for($i=$start_time; $i<$end_time; $i+=86400)
{
print '<th align="center"> '. date("m-d-Y l", $i). '</th>';
}
?>
<th>Hours</th>
</thead>
</table>
And the output is also getting wrong dates, e.g. I am getting two Sundays at a time
Can anyone suggest a solution?