Log 2419

$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;

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare