Date Difference Calculator
Break the difference between two dates into years, months and days.
About Date Difference Calculator
A calendar difference borrows from the next larger unit when a component is negative, exactly like long subtraction. The number of days borrowed depends on the preceding month, which is why the same day gap gives different results in different months. This is how ages and service lengths are stated, and why two people the same number of days apart in age can show different year-month-day breakdowns.
Formula
Date Difference
Subtract each component, borrowing from the next unit when a component goes negative
- borrowing
- Taking days from the previous month when the day difference is negative
Worked example
With the default values below, Date Difference Calculator returns Years of 35. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Start date yearaccepts 1,970–2,200
- 1,990
- Start date monthaccepts 1–12
- 3
- Start date dayaccepts 1–31
- 22
- End date yearaccepts 1,970–2,200
- 2,025
- End date monthaccepts 1–12
- 11
- End date dayaccepts 1–31
- 8
Results
- Years
- 35 years
- Additional Months
- 7 months
- Additional Days
- 17 days
- Total Days
- 13,015 days
- Full Breakdown
- 35 years, 7 months, 17 days
Step by step
- 1Values used
- 2Date Difference
- 3Years= 35 years
- 4Additional Months= 7 months
- 5Additional Days= 17 days
- 6Total Days= 13,015 days
- 7Full Breakdown= 35 years, 7 months, 17 days
Assumptions and limits
- The result is derived only from the 6 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to whole numbers, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
How is Date Difference calculated?
Subtract each component, borrowing from the next unit when a component goes negative A calendar difference borrows from the next larger unit when a component is negative, exactly like long subtraction. The number of days borrowed depends on the preceding month, which is why the same day gap gives different results in different months.
Why does Date Difference matter?
This is how ages and service lengths are stated, and why two people the same number of days apart in age can show different year-month-day breakdowns.
What values do I need to enter?
This calculator takes 6 inputs: Start date year, Start date month, Start date day, End date year, End date month, End date day. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
Related Calculators
You might also need
- Microseconds ConverterCommonly used together
- Milliseconds ConverterCommonly used together
- Nanoseconds ConverterCommonly used together
- Break Time CalculatorAlso in Time, Calendar & Productivity
- Business Date CalculatorAlso in Time, Calendar & Productivity
- Business Days CalculatorAlso in Time, Calendar & Productivity
