Date Difference Calculator - Days, Weeks & Months Between Dates
Calculate the exact span between two calendar dates in total days, weeks, and a years-months-days breakdown. Handles varying month lengths and leap years using calendar date logic.
Select Dates
Calculate the span between two calendar dates.
Difference
Days, weeks, and months between dates.
Total days
0
0 yr, 0 mo, 0 days
Methodology and limitations
Last reviewed:
Methodology
Computes total days between dates and a calendar years-months-days breakdown accounting for varying month lengths.
Limitations
Uses date-only values without time-of-day or timezone offsets.
How Date Difference Is Calculated
Calculate the exact span between two calendar dates in total days, weeks, and a years-months-days breakdown. Handles varying month lengths and leap years using calendar date logic.
Method used
The calculator computes the total day count between two calendar dates and breaks the span into completed years, months, and days accounting for varying month lengths and leap years.
Total days = end date − start date; Y-M-D = calendar decomposition of the span
Practical example
From January 15, 2024 to June 28, 2026 is 895 total days, or 2 years, 5 months, and 13 days when counted in calendar terms.
- Start date
- End date (defaults to today if omitted)
The result shows total days, weeks, months, and a years-months-days breakdown.
Assumptions
- Dates are calendar dates without time-of-day.
- End date is inclusive or exclusive per the calculator's date-difference logic.
- Leap years are handled in the calendar math.
What this includes
- Total days, weeks, months, and years-months-days breakdown between two dates.
What this excludes
- Business-day counting, holiday calendars, time-zone offsets, and legal contract day-count conventions (30/360, ACT/365).
Related calculators
Frequently Asked Questions
How is the date difference calculated?
The calculator counts total calendar days between the start and end dates, then derives completed years, months, and remaining days with the same calendar logic used in age calculations. Varying month lengths and leap days are included automatically. Enter both dates in the same unambiguous format to avoid swapped day/month mistakes.
Does it include the start or end date in the count?
Total days reflects the span between the two dates as a difference, similar to subtracting dates on a timeline. For inclusive counting that includes both endpoints—common in event-day planning—add one day to the total days result. Clarify inclusive versus exclusive rules when contracts specify “within N days.”
Can I calculate days until today?
Yes. Set the end date to today with the quick action, or pick today’s date manually, to see how many days have passed since a start date such as a project kickoff or anniversary. Swap the dates if you need days remaining until a future deadline instead.
Does the calculator handle leap years?
Yes. Arithmetic uses actual calendar dates, so February 29 and other leap-year effects are included when computing month and day breakdowns. Spans that cross February 29 in a leap year contain one extra day versus the same civil span in a common year.
What is the difference between total days and total months?
Total days is an exact count of calendar days between the dates. Total months counts completed calendar months inside the years-months-days breakdown, which can differ from dividing days by 30. Use total days for precise durations and the Y/M/D breakdown for human-readable age-style spans.