Log 2419
25/12/2023 2023-12-25 14:49$dateOfArrival = “20/02/2024”;
$numberOfNights = 2;
// Split the date into day, month, and year
list($day, $month, $year) = explode(‘/’, $dateOfArrival);
// Add the number of nights to the day
$newDay = $day + $numberOfNights;
// Reconstruct the date with the new day
$newDate = $newDay . ‘/’ . $month . ‘/’ . $year;
return $newDate;