Count the number of days and nights between two travel dates.
The number of calendar days between the start and end dates is found by subtracting the timestamps and dividing by the milliseconds in a day. Nights are one fewer, assuming you check out the final morning. Hotels price by nights and itineraries by days, so keeping the two straight prevents booking one too many or one too few nights.
Trip Days Between Dates
Days = (end - start) / 86,400,000 ms; nights = days - 1
Days = (end - start) / 86,400,000 ms; nights = days - 1 The number of calendar days between the start and end dates is found by subtracting the timestamps and dividing by the milliseconds in a day. Nights are one fewer, assuming you check out the final morning.
Hotels price by nights and itineraries by days, so keeping the two straight prevents booking one too many or one too few nights.
This calculator takes 6 inputs: Start year, Start month, Start day, End year, End month, End day. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.