How it works
How to use this date difference calculator
- Choose a start date.
- Choose an end date.
- Read elapsed days, weeks and days, and the inclusive count.
Formula
The calculation formula
Elapsed Days = End Date − Start DateInterpret both dates at the same local calendar boundary.
Subtract the start timestamp from the end timestamp.
Convert elapsed milliseconds into days and weeks.
Worked examples
Example calculations
From July 1 to July 27 is 26 elapsed days. Inclusive counting returns 27.
If the end date is earlier, the primary result is the absolute day count.
When to use it
Common use cases
- Count days to a deadline
- Measure a project duration
- Compare travel or booking dates
Limits
Assumptions and limits
- Dates are normalized to UTC midnight calendar boundaries.
- Elapsed days exclude the start date.
- Inclusive count includes both boundary dates.
- Daylight-saving changes do not affect the calendar-day result.
Questions
Frequently asked questions
Does the result include both start and end dates?
The primary result shows elapsed time and excludes the start date. The calculator also displays the inclusive day count.
Do daylight-saving changes affect the answer?
No. Dates are normalized to calendar boundaries before calculating the difference.
Sources
Sources and review
- ISO 8601 — date and time representations
Calendar date interpretation as year-month-day
Accessed July 27, 2026