Date Difference Calculator
Counting days depends on whether you count the last one. A stay from the 1st to the 3rd covers two nights but three days if the final day is included — this tool lets you choose the rule.
How to Use
- Pick the Start date and End date. End date defaults to today.
- Tick Include end date when the final day should count as a full day.
- Read the day count, approximate weeks/months/years and the calendar difference line.
- Use Swap dates to reverse the range or Reset to today to clear it.
Practical Examples
- 1 March to 3 March is 2 days excluding the end date, or 3 days inclusive.
- A leap-day span from 29 February 2020 to 1 March 2020 is 1 day, even though it crosses a DST change in many time zones.
- An end date before the start date returns a negative day count and a calendar difference prefixed with a minus sign.
Understanding the Result
The day count is calculated from UTC-normalised calendar dates, so daylight-saving transitions do not introduce an off-by-one error. Include end date adds one for a forward range and subtracts one for a reversed range.
Weeks, months and years are conversions by 7, 30.437 and 365.25 days. They are approximations. The Calendar difference line instead uses whole calendar years, months and days, borrowed correctly across month lengths.
The description line states whether the end date was included, so the number can always be interpreted without guessing.
Limitations and Useful Notes
- By default the end date is excluded. Tick the checkbox for an inclusive count.
- Approximate months and years will not match a calendar count; use the Calendar difference line or the Age Calculator instead.
- The tool works with dates only, not times of day, and historical calendar reforms are not modelled.
- A reversed range produces a negative result rather than an error, so check the order of the dates if a minus sign appears.
- Only one range is handled at a time; nothing is stored.
Common Questions
Is the end date included?
Not by default. Tick Include end date to add the final day, which is what you usually want for an inclusive period such as leave or an event duration.
Will daylight saving change the answer?
No. Day counts use UTC-normalised calendar dates, so a DST shift does not add or remove a day.
What does Calendar difference mean?
It is the whole years, months and days between the dates, with month lengths respected. The other month and year figures are conversions from a day count and are labelled approximate.