Date Difference Calculator
Measure the gap between any two dates in calendar years, months, and days, and in raw totals of days, weeks, hours, and minutes. Enter the dates in either order.
No range chosen yet
Pick two dates above to see the difference between them. The order does not matter — they are swapped automatically if needed.
How to Use
- Pick your two dates. The order is irrelevant — if the second is earlier, the tool swaps them and tells you it did.
- Read the calendar difference in years, months, and days at the top, and the raw totals in the row beneath it.
- Tick the inclusive option if you need to count both the first and the last day, which is how leave, rentals, and notice periods are usually counted.
- Copy the summary if you need to paste it into a document or message.
Features
- Order-independent — the earlier date is detected automatically
- Calendar-accurate years, months, and days using true month lengths
- Totals in days, whole weeks plus remainder, months, hours, and minutes
- Optional inclusive counting that adds the final day
- Rejects impossible dates such as 31 February
Two Ways to Measure the Same Gap
There are two legitimate answers to "how far apart are these dates?" and this tool gives you both. The first is a raw duration: a simple count of days, which you can then express in weeks, hours, or minutes by dividing or multiplying. This is the answer you want for anything cumulative — days of interest accrued, hours logged, how long a server has been running. It is a single number and it never needs interpretation.
The second is a calendar difference: so many years, months, and days. This is what people mean in conversation — "two years and three months" — and it cannot be derived by dividing the day count, because months are not a fixed length. The calculation instead subtracts the year, month, and day components separately and borrows where necessary, taking the true length of the preceding month when the day of the month has not yet come round. That is why a gap of 31 days can be "1 month and 0 days" in one part of the year and "1 month and 3 days" in another, and why two different calculators can disagree slightly if one of them always borrows thirty days.
The inclusive option deserves a word too, because it is the most common source of an off-by-one dispute. If you book a holiday cottage from Monday to Friday, you occupy four nights but five days. Payroll, notice periods, hospital stays, and rental agreements each have their own convention about whether the final day counts. The default here is exclusive — the plain arithmetic difference — and ticking the box adds one day so you can match whichever convention the document in front of you uses. All dates are treated as plain calendar dates at local midnight, so daylight saving transitions cannot silently shift a result across a day boundary.
Frequently Asked Questions
Does it matter which date I enter first?
No. The calculator identifies the earlier date itself and always reports a positive difference, noting when it has swapped your inputs.
Why is the total months figure not the day count divided by 30?
Because it is a calendar count, not an average. It is derived from the years-and-months breakdown, so it reflects real month boundaries rather than a 30-day approximation.
Are leap days included?
Yes. The total day count is a true count of calendar days, so every 29 February in the interval is counted.
Does it account for daylight saving?
It does not need to. Both dates are handled as plain calendar dates, so the day count is unaffected by clocks going forward or back. The hours figure is the day count times twenty-four, which is the nominal rather than the elapsed value in a week containing a transition.
Can I exclude weekends?
Not here — use the working days calculator, which counts business days only and lets you exclude your own holiday dates as well.