Date Difference Calculator
Calculate the calendar difference between two dates in years, months and days.
Difference
- Total months
- Total weeks
- Total days
Worked example
From 15 January 2020 to 20 March 2023 is 3 years, 2 months and 5 days.
How we calculated this
This tool breaks the gap between two dates down into calendar years, months and days, unlike Days Between Dates, which reports a single total day count. The end date must be on or after the start date. End-of-month dates follow the same calendar clamping used throughout this site (for example, 31 January to 1 March is treated as 1 month and 1 day, since January's 31st clamps to February's 28th or 29th first). Total months is an exact completed-month count (years × 12 + months), never an average-month approximation; total weeks and total days are the exact elapsed calendar-day count, regrouped.
What this result means
The result is the calendar difference between the two dates, broken down into years, months and days.
Examples
- 31 January to 1 March 2025: 1 month and 1 day (29 days in total), because 31 January plus one month lands on 28 February in 2025, and 1 March is one day after that.
- 31 January to 1 March 2024: Also 1 month and 1 day, but 30 days in total, because 2024 is a leap year and 31 January plus one month lands on 29 February.
- 1 March 2023 to 1 March 2024: 1 year, 0 months, 0 days, even though the span is 366 days because it includes 29 February 2024.
Common mistakes
- Entering the later date first: the calculator does not silently reorder your dates. Use the swap button, or enter them again the other way round.
- Treating every month as 30 days. A month here is a calendar month, so the same number of months can cover 28, 29, 30 or 31 days. Compare the two 1 month and 1 day results above, which are 29 and 30 days.
Assumptions and limitations
- It works on whole calendar dates only. Times of day, time zones and daylight saving changes play no part.
- The end date must be on or after the start date, and dates from the year 1 to the year 9999 are supported. Leap years follow the modern Gregorian rule throughout.
- The tool does not count Monday to Friday only. Use the Business Days Calculator for that.
