PHP subtracting dates
Posted on 2011-03-20
I have 2 dates (arrival and departure). I want to work up the number of nights stayed based on those 2 dates. How can I achieve this. So far I have....
$Arrival_Date = date("Y-m-d", strtotime($Arrival_Date));
$Departure_Date = date("Y-m-d", strtotime($Departure_Date));
$NoNights = $Departure_Date - $Arrival_Date;
But this returns zero.