2023-08-21
2023-08-22
2023-08-23
2023-08-24
2023-08-25
2023-08-26
2023-08-27
2023-08-28
2023-08-29
$dataOt = '21-08-2023'; $dataDo = '29-08-2023'; $in = date_diff(date_create($dataOt), date_create($dataDo)); $dot = strtotime($dataOt); $godOt = idate('Y', $dot); $mesOt = idate('m', $dot); $denOt = idate('d', $dot); for($j=0; $j<=$in->days; ++$j) { $u3 = mktime(0, 0, 0, $mesOt, $denOt+$j, $godOt); print date("Y-m-d\n", $u3); }