Trip Days Between Dates
Count the number of days and nights between two travel dates.
About Trip Days Between 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.
Formula
Trip Days Between Dates
Days = (end - start) / 86,400,000 ms; nights = days - 1
- nights
- Sleeping nights are one fewer than calendar days covered
Worked example
With the default values below, Trip Days Between Dates returns Total Days of 10. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Start yearaccepts 2,000–2,200
- 2,026
- Start monthaccepts 1–12
- 6
- Start dayaccepts 1–31
- 10
- End yearaccepts 2,000–2,200
- 2,026
- End monthaccepts 1–12
- 6
- End dayaccepts 1–31
- 20
Results
- Total Days
- 10
- Nights
- 9
- Weeks Approx
- 1.4
Step by step
- 1Values used
- 2Trip Days Between Dates
- 3Total Days= 10
- 4Nights= 9
- 5Weeks Approx= 1.4
Assumptions and limits
- The result is derived only from the 6 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 1 decimal place, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
How is Trip Days Between Dates calculated?
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.
Why does Trip Days Between Dates matter?
Hotels price by nights and itineraries by days, so keeping the two straight prevents booking one too many or one too few nights.
What values do I need to enter?
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.
