Calculate the exact difference between two dates expressed in years, months, days, and total days. Ideal for age calculations, tenures, contract periods, and elapsed time.
To find the difference between two dates in years, months, and days: (1) Calculate complete years between the dates. (2) Find additional complete months after the full years. (3) Count remaining days. Example: from 15 March 2020 to 20 February 2026 = 5 years, 11 months, 5 days (or 2,168 total days). In ISO 8601 notation: P5Y11M5D.
Suggested subject: A ruler or measuring tape laid across a calendar, representing measuring time intervals between dates
Recommended size: 860 × 440 px | Alt text: "Ruler measuring the distance between two dates on a calendar, representing date difference calculation"
A date difference is the measured interval between any two points in time. Unlike a simple day count, a full date difference expresses the gap in human calendar units — years, months, and days — which is how people naturally think about duration.
For example, "2,168 days" is less intuitive than "5 years, 11 months, and 5 days." Both are correct, but the latter aligns with how we discuss employment tenures, lease lengths, loan terms, and ages.
Computing a date difference in years, months, and days requires a step-by-step approach because months vary in length (28–31 days) and years can be 365 or 366 days.
| Start Date | End Date | Years | Months | Days | Total Days |
|---|---|---|---|---|---|
| 1 Jan 2000 | 20 Feb 2026 | 26 | 1 | 19 | 9,547 |
| 15 Mar 2020 | 20 Feb 2026 | 5 | 11 | 5 | 2,168 |
| 1 Jul 2023 | 30 Jun 2026 | 2 | 11 | 29 | 1,094 |
| 10 Oct 2025 | 20 Feb 2026 | 0 | 4 | 10 | 133 |
ISO 8601 expresses durations as PnYnMnDTnHnMnS where:
P = period designator (required prefix)nY = years, nM = months, nD = daysT = time separator (precedes hours, minutes, seconds)P2Y3M15DPT1H30MUnder the Fair Work Act 2009, entitlements such as annual leave accrual rates, notice periods, and redundancy pay are calculated based on continuous service in years. A date difference tool gives the precise tenure in years and months for payroll and HR purposes.
Residential and commercial lease terms are frequently expressed in months or years. A 12-month lease signed on 15 March 2025 that ends on 14 March 2026 spans exactly 1 year — but a lease "expiring in 12 months" signed on 31 January runs only to 28 February (not 31 January the next year), because February is shorter.
Age in years and months is required for medical assessments, school enrolment cut-offs, and pension eligibility checks. The Australian Bureau of Statistics uses age at last birthday as the standard measure, which aligns with the years-months-days breakdown.
Many legal claims have strict time limits. For example, under state-based limitations legislation, general contract disputes typically must be commenced within 6 years of the cause of action. A date difference tool quickly confirms whether a period of 6 years has elapsed.
| Measure | Format | Best for |
|---|---|---|
| Calendar days | e.g. 547 days | Simple countdowns, elapsed time |
| Working days | e.g. 390 business days | Deadlines, SLAs, notice periods |
| Weeks | e.g. 78.1 weeks | Project planning, scheduling |
| Years/Months/Days | e.g. 1Y 6M 2D | Age, tenure, contract terms |
| ISO Duration | e.g. P1Y6M2D | APIs, software, technical specs |
Use the years/months/days format whenever the answer will be read by a person in a human context. Use the total-days count for arithmetic operations, deadline calculations, and software systems.
Use our Business Days Calculator to exclude weekends and public holidays from your interval.
Try Business Days Calculator →Step through calendar months: find complete years, then complete months after the last full year, then count remaining days. Use the calculator above for instant results.
ISO 8601 uses duration notation starting with P. For example, 2 years, 3 months, 15 days = P2Y3M15D. Hours/minutes/seconds follow a T separator: P1Y2M3DT4H5M6S.
Months have different lengths (28–31 days). Dividing by 30 gives an approximation. The calendar-aware calculation accounts for each month's actual length and leap years.
Age counts complete calendar years since your birth date, then complete months, then remaining days. Leap-year birthdays (29 Feb) are typically observed on 28 Feb in non-leap years for most purposes.
Calendar days count every day including weekends and public holidays. Working days count only Monday–Friday, excluding public holidays. A 14-calendar-day period typically contains 10 working days.
From 1 January 2000 to 20 February 2026 is 26 years, 1 month, and 19 days (or 9,547 total days). Use the calculator above for any date pair.