Date Difference Tool — Measuring Any Time Interval Precisely
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.
📐 Date Difference Calculator
Quick Answer: How to Calculate a Date Difference in Years, Months, and Days
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.
Hero Image: Time Measurement
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"
What Is a Date Difference?
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.
When to use a date difference tool
- Calculating your age or an employee's tenure in years and months
- Determining how long a lease, loan, or subscription has been active
- Checking if a warranty or guarantee period has expired
- Measuring how long you've been saving, exercising, or studying
- Legal contexts requiring an exact interval (e.g., statute of limitations periods)
How the Date Difference Calculation Works
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.
Step-by-step method
- Find complete years: How many full 12-month periods fit between the start and end date?
- Advance to the anniversary date: Move the start date forward by those years.
- Find complete months: Count full months between the anniversary and the end date.
- Count remaining days: Days from the last month boundary to the end date.
Worked example
| 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 Duration Notation
ISO 8601 expresses durations as PnYnMnDTnHnMnS where:
P= period designator (required prefix)nY= years,nM= months,nD= daysT= time separator (precedes hours, minutes, seconds)- Example: 2 years 3 months 15 days =
P2Y3M15D - Example: 1 hour 30 minutes =
PT1H30M
Common Applications in Australia
Employment Tenure
Under 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.
Property and Leasing
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 Verification
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.
Legal Limitation Periods
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.
Date Difference vs Simple Day Count
| 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.
Need to Count Only Working Days?
Use our Business Days Calculator to exclude weekends and public holidays from your interval.
Try Business Days Calculator →Authoritative External References
- ISO 8601 — Date and Time Format Standard — International Organization for Standardization
- Annual Leave and Service Periods — Fair Work Australia
- Acts Interpretation Act 1901 — Time Reckoning — Australian Government
- Age at Last Birthday — ABS Standards — Australian Bureau of Statistics
- Duration Calculator Reference — TimeAndDate.com
Frequently Asked Questions
How do you calculate the difference between two dates in years, months, and days?
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.
What is the ISO 8601 notation for a date interval?
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.
Why does the years/months/days result differ from a simple day count divided by 30?
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.
How is age calculated in years and months?
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.
What is the difference between calendar days and working days?
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.
How many years, months, and days from 1 January 2000 to today?
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.