Log 2611
22/01/2024 2024-01-22 15:20$startDate = #תאריך התחלה#;
$endDate = #תאריך סיום#;
// Convert the start and end dates to timestamps
$startTimestamp = strtotime($startDate);
$endTimestamp = strtotime($endDate);
// Iterate through each day between the start and end dates
$currentTimestamp = $startTimestamp;
while ($currentTimestamp <= $endTimestamp) {
// Format the current timestamp as a date (day/month/year)
$currentDate = date("d/m/Y", $currentTimestamp);
// Print the current date
return $currentDate . "n";
// Move to the next day by adding 24 hours (86400 seconds) to the current timestamp
$currentTimestamp += 86400;
}