Date Difference Calculator
Find the difference between two dates in years, months, days, weeks, and total days. Order does not matter and it runs in your browser.
Independently verified for accuracy
Calculator by Toolsloft ↗- Difference
- 6 years, 5 months, 23 days
- Total months
- 77
- Total weeks
- 338 weeks, 0 days
- Total days
- 2,366
Measure the gap between two dates in years, months, and days, and also as a plain number of days and weeks. Enter a start date and an end date in any order and the tool reports the full span. It is handy for anniversaries, project timelines, contract lengths, and any question that starts with "how long between".
How this is calculated
The two dates are compared as UTC calendar days so the day count is exact and timezone-free. The year, month, and day breakdown uses the standard relativedelta convention: the whole-month difference is added back to the earlier date, clamped to month length, stepped back if it overshoots, and the remaining days are counted.
How to use
- Enter the start date.
- Enter the end date (either date can be the later one).
- Read the breakdown and the total days and weeks below.
Examples
- Multi-year span:
2020-01-15 to 2026-07-08 → 6 years, 5 months, 23 days - Same day:
2024-03-01 to 2024-03-01 → 0 days
FAQ
- Does the order of the dates matter?
- No. The tool always reports a non-negative span, so you can enter the later date first without changing the result.
- Are leap years counted correctly?
- Yes. The total day count is a direct calendar-day difference, so February 29 is included whenever it falls inside the range.
- How is the month breakdown handled at month ends?
- When the end day is earlier in the month than the start day, the tool counts one fewer whole month and adds the leftover days, clamping to the length of a shorter month.