Calculate the difference between two dates
Years
Months
Days
The calendar calculator computes the exact difference between two dates, taking into account varying month lengths and leap years. Simply enter a start date and end date, then click "Calculate Difference" to see the result in days, weeks, months, and years.
You can also choose whether to include or exclude the end date in your calculation. Including the end date counts both the start and end dates in the total (which adds one day), while excluding it only counts from the start date to the day before the end date.
When calculating date differences in months and years:
For example, the difference between January 15, 2020 and March 20, 2023 would be 3 years, 2 months, and 5 days.
The option to include or exclude the end date affects how days are counted:
This option is particularly useful in legal, financial, or project timeline calculations where the counting method matters.
This calendar calculator automatically accounts for leap years. In the Gregorian calendar (the most widely used calendar today), leap years occur:
For example, 2020 and 2024 are leap years, but 1900 was not, while 2000 was a leap year.
The leap day (February 29) adds one extra day to date difference calculations that span across leap years.
The calendar calculator has many practical uses, including:
This calendar calculator provides highly accurate date difference calculations. It uses advanced date handling algorithms that account for:
The calculator is accurate for all dates in the Gregorian calendar, which was first adopted in 1582 but implemented at different times across various countries. For extremely distant historical dates (before widespread adoption of the Gregorian calendar), minor discrepancies might exist.