I am trying to get an array of a date plus the next 13 dates to get a 14 day schedule starting from a given date.
here is my function:
$time = strtot
I would use strtotime
$start = strtotime($s_row['schedule_start_date']); $dates=array(); for($i = 1; $i<=14; $i++) { array_push($dates,date('Y-m-d', strtotime("+$i day", $start))); } print_r($dates);