Date & Time
Date Difference Calculator
Find exact years, months, elapsed days, inclusive days, weeks, weekdays, and weekends between two dates.
Date Difference Calculator tool
Loading tool…
Jump to a section
About This Tool
Compare any two calendar dates in two useful ways: an exact calendar-style difference in years, months, and days, and a raw elapsed-day total. This makes the tool useful for project timelines, contracts, anniversaries, records, countdowns, and any question where both human-readable duration and exact day count matter.
How To Use It
- Start with the month-end example or enter the first date for a project, contract, or event.
- Enter the second date, either before or after the first date.
- Review the calendar difference in years, months, and days.
- Choose whether elapsed, inclusive, or exclusive days should be the primary answer, then compare it with the other counts, weekdays, weekend days, and the week-based summary.
- Swap the dates, set either endpoint to today, reset the example, or copy a share link that restores the selected dates and counting convention.
Examples
Month-end example: January 31 to March 1
From January 31, 2024 to March 1, 2024, the calendar result is 1 month and 1 day, while the elapsed total is 30 days. This shows why calendar months and total days answer different questions.
Contract or subscription span
Compare a start date and renewal date to confirm the calendar interval and the exact number of elapsed days.
Time until or since an event
Use a past or future event date to see both the natural years-months-days wording and the total days between the two dates.
Dates entered in reverse
If the later date is entered first, the calculator still shows the absolute difference and indicates that the input order was reversed.
Useful Notes
Calendar difference
Years and months follow actual calendar boundaries rather than fixed 365-day years or 30-day months. Month-end and leap-year dates are adjusted to the nearest valid calendar date when needed, so February and leap years are handled as real calendar dates.
Total elapsed days
The elapsed result measures midnight-to-midnight calendar-day transitions, so the same date is 0 elapsed days. The inclusive result counts both endpoints. The exclusive result omits both endpoints, which is useful when only the full dates strictly inside a range should count.
Why month-based and day-based results differ
A calendar month can contain 28, 29, 30, or 31 days, so converting the years-months-days result into a fixed number of days can produce the wrong answer. Complete calendar months count only whole month boundaries; any leftover days remain separate.
Counting rule and midpoint
Use the counting-convention menu to make elapsed, inclusive, or exclusive days the primary answer. Elapsed days exclude the earlier date and include the later date; inclusive days count both endpoints; exclusive days count neither. The middle-date result identifies the single midpoint for an even elapsed-day span, or the two central dates when the span has no single calendar-date midpoint.
Date-only calculation
The calculator uses the selected dates only, without times of day or time zones. That keeps ordinary date comparisons stable, but it is not a substitute for rules that depend on local filing deadlines, cutoff times, or jurisdiction-specific counting.
Weekday and weekend breakdown
The result separates Monday-to-Friday weekdays from Saturday and Sunday across the inclusive range. It does not subtract public holidays. Use the Business Days Calculator when observed US federal holidays or entered holidays need to be excluded.
Private browser calculation
The selected dates are processed in your browser. The calculator does not need an account, upload, or server-side date lookup to show the result.
Share or reopen the same comparison
Copy share link creates a URL containing the two selected calendar dates and, when changed from the default, the counting convention. Opening that link restores the comparison without storing the dates in an account or sending the calculation to a separate service.
FAQ
How do I calculate the difference between two dates?
Enter both dates and read the calendar result for years, months, and days. Use the total-days result when you need one exact day count instead of a human-readable calendar span.
What happens if the dates are reversed?
The calculator shows the absolute difference and notes that the dates were entered in reverse order.
Does this handle leap years and different month lengths?
Yes. The years-months-days result follows real calendar boundaries, so February, leap years, and months with 30 or 31 days are handled without assuming every month has the same length.
Does the total days result include both dates?
Choose the convention you need. Elapsed days exclude the start date, so identical dates produce 0 elapsed days. Inclusive days count both endpoints, so identical dates produce 1 inclusive day. Exclusive days omit both endpoints.
Is this the same as counting business days?
No. The weekday result counts Monday through Friday but does not remove public holidays. Use the Business Days Calculator for optional observed US federal and custom holiday exclusions.
Why not divide total days by 30 to get months?
Calendar months do not have a fixed length. The complete-month result follows real month boundaries, while the remaining days stay separate, instead of treating every 30 days as one month.
What is the exclusive day count?
It counts only complete calendar dates strictly between the start and end dates, omitting both endpoints. Adjacent dates therefore have zero exclusive interior days.
Can I use this for legal, benefit, or filing deadlines?
Use it only as a general date reference. Formal deadlines can have special counting rules for weekends, holidays, time zones, cutoff times, and inclusive endpoints.
Can I share or reopen a date comparison?
Yes. Use Copy share link to create a URL that restores the selected start and end dates plus the counting convention. The dates are visible in the URL, so avoid sharing a link if the dates themselves are sensitive.