The difference between two dates, expressed the way humans actually speak about time: years, months, and days — plus every useful total underneath. This calculator decomposes a span into calendar components, reports totals in days, weeks, months, hours, minutes, and seconds, and can include the time of day when the span is measured in hours rather than days.
How It Works
The calculator does true calendar arithmetic with borrowing, exactly as you would by hand but without the errors: full years between the dates, then full months, then the remaining days — where borrowing a month means borrowing that month's real length (28–31 days as the calendar dictates, leap Februaries included). Alongside the decomposition it returns totals: total days, total weeks, total months (whole calendar months), and — when time is included — total hours, minutes, and seconds.
Uniquely among this site's date tools, the result is signed: enter the dates in reverse and every figure is negated, so the tool answers "how long until" and "how long since" with direction intact, rather than silently sorting your dates.
| Output | Meaning | | --- | --- | | Years / months / days | Calendar decomposition of the span | | Total days | Whole 24-hour days in the span | | Total weeks | Total days ÷ 7 | | Total months | Whole calendar months (years × 12 + months) | | Total hours / minutes / seconds | Shown when time-of-day is included |
Worked Example
From 15 January 2023 to 10 March 2024:
- Full years: 15 Jan 2023 → 15 Jan 2024 = 1 year
- Full months: → 15 Feb 2024 = 1 month
- Remaining days: 15 Feb → 10 Mar 2024. February 2024 has 29 days, so 14 days reach 29 Feb, plus 10 in March = 24 days
- Decomposition: 1 year, 1 month, 24 days
- Totals: 420 days = exactly 60 weeks = 13 total months
Run it backwards — start 10 March 2024, end 15 January 2023 — and every figure returns negative (−420 days, −1 year, −1 month, −24 days): the signature of a "time since" reading, and the behavior to expect if your deadline math ever produces surprise negatives elsewhere.
Which Date Tool for Which Question
This site carries several date tools because "difference" hides several different questions. Use this one when you want the full picture: calendar decomposition and totals, optional time-of-day, and direction. Use Days Between Dates for the minimal question — a raw total day count with whole weeks and an inclusive-count toggle. Use Date Duration for a similar decomposition with an inclusive option and UTC-normalized dates. Use Working Days when weekends and holidays must be excluded (business deadlines, leave, SLAs), and the Age Calculator when the span is a life and you also want total days lived and the next birthday. The differences are real but subtle; choosing by the output shape you need — decomposition, totals, or business days — picks the right one every time.
Limitations and Conventions
Without time included, both dates are taken at local midnight — the span is a count of calendar days, not of elapsed 24-hour periods measured from a moment within a day. Daylight-saving transitions make two specific local days 23 or 25 hours long; the calendar decomposition is unaffected, but hour-level totals across such a boundary inherit the shift. Decomposition conventions (which month lends its days when borrowing) follow the standard algorithm used throughout this site's date tools, so figures agree with the Age and Date Duration calculators on identical inputs.
Frequently Asked Questions
Does the count include both the first and last day?
No — this calculator measures the distance between the dates: Monday to Tuesday is 1 day. If your convention counts both endpoints (event durations, stays), add a day to the total, or use the Days Between Dates calculator with its inclusive toggle on.
Why do the decomposition and the total sometimes look inconsistent?
Because months are irregular. "1 month" from 15 January ends on 15 February — 31 days — while "1 month" from 15 February in a leap year spans 29 days. The decomposition honors the actual calendar; the totals count actual days. Both are exact — they are answering in different units, and the conversion between them is date-dependent by nature.
What does a negative result mean?
That the end date precedes the start date — the span runs backwards, i.e. the "end" is in the start's past. Rather than swap silently, the calculator keeps the direction and negates every figure, which makes it suitable for "time since" questions without re-entering the dates in order.