Quick answer
The difference between two dates is given in whole years, months and days. From 15 June 1990 to 10 March 2024 is 33 years, 8 months and 24 days, a total of 12,322 days.
Enter a start and an end date. The calculator returns years, months and days and the total days.
Related tools: Days Between Dates Calculator: Number of days, weeks and months between two dates. Weeks Between Dates Calculator: Time between two dates in weeks. Months Between Dates Calculator: Time between two dates in months.
How to use the Years Between Dates Calculator
- Pick start date.
- Pick end date.
- Press Calculate to see the result, and use Reset to start again.
| Input | What to enter | Allowed values |
|---|---|---|
| Start date | A calendar date | — |
| End date | A calendar date | — |
Formula and method
Formula
calendar difference in whole years, months and days
Exact integer arithmetic.
The order of the dates does not matter. Months and years are counted on the calendar; days are exact.
Worked examples
These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.
Example 1
Inputs: Start date = 1990-06-15; End date = 2024-03-10.
| Result | Value |
|---|---|
| Years, months and days | 33 years, 8 months, 24 days |
| Total days | 12322 |
Example 2
Inputs: Start date = 2000-01-01; End date = 2025-01-01.
| Result | Value |
|---|---|
| Years, months and days | 25 years |
| Total days | 9132 |
The first line is the headline result (years, months and days). Below it the years Between Dates Calculator lists total days, which describe the same case from other angles. Exact integer arithmetic.
How to read it
33 years takes 15 June 1990 to 15 June 2023; 8 months takes it to 15 February 2024; 24 more days reach 10 March 2024 (2024 is a leap year, so February has 29 days).
Age or duration
The same calculation gives a person's age, the length of a marriage or a tenure. For exact age as of a date, the Age Calculator is dedicated to that; this page works for any two dates.
What happens with invalid input
These messages are produced by the calculator itself, so you know what to fix.
- Start date: entering "x" shows "Start date must be a valid date." beside that field and no result.
Choosing between the Years Between Dates Calculator and similar calculators
Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.
| Calculator | You enter | It returns |
|---|---|---|
| [Days Between Dates Calculator](/date-calendar/days-between-dates-calculator/) | start date, end date and count end date? | Days between |
| [Weeks Between Dates Calculator](/date-calendar/weeks-between-dates-calculator/) | start date and end date | Weeks and days |
| [Months Between Dates Calculator](/date-calendar/months-between-dates-calculator/) | start date and end date | Months and days |
| [Date Calculator](/date-calendar/date-calculator/) | start date and operation | Resulting date |
| [Days Until Calculator](/date-calendar/days-until-calculator/) | target date | Days until |
Background: dates and times
Date and time results depend on the conventions a tool uses: whether the end date counts, whether weekends and holidays are skipped, how months of different lengths are handled and whether time zones are applied. This page states its convention, and the worked examples show it.
Dates use the Gregorian calendar and calendar days unless the page says otherwise; check deadlines against the rule in your contract or regulation.
Assumptions and limitations
- Identical dates give 0
If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for start date to confirm this.
Frequently asked questions
How many days are in 33 years?
About 12,053; leap days add to this.
Do I get the same result in reverse?
Yes, the order does not matter.
Is the result in whole years?
Years, months and days are given together.
What does the Years Between Dates Calculator calculate?
Time between two dates in years. It returns Years, months and days and Total days.
What formula does the Years Between Dates Calculator use?
calendar difference in whole years, months and days. The order of the dates does not matter.
What do I need to enter in the years Between Dates Calculator?
You enter Start date and End date.
How is the result rounded or limited?
Exact integer arithmetic. Identical dates give 0.
What is an example of a years Between Dates result?
With start date 1990-06-15 and end date 2024-03-10, the years, months and days is 33 years, 8 months, 24 days.
Related calculators
- Days Between Dates Calculator — Number of days, weeks and months between two dates.
- Weeks Between Dates Calculator — Time between two dates in weeks.
- Months Between Dates Calculator — Time between two dates in months.
- Date Calculator — Add or subtract days, weeks, months or years from a date.
- Days Until Calculator — Days remaining until any date (generalizes “days until June 15”, “days until Christmas” and similar pages).
- Graduation Year Calculator — Expected graduation year from the start year and program length.
Sources
- ISO 8601-1: Date and time, representations for information interchange (calendar dates, ordinal dates and week dates)
- Gregorian calendar reform, papal bull Inter gravissimas (1582): the leap-year rule used for all dates
Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.