Skip to content
CalculatorAtlas

Years Between Dates Calculator

Tested

Time between two dates in years.

Tested, not yet published. The formula for this calculator is implemented and passes its automated checks. This page stays non-indexable until it is reviewed and published.

Results

Enter your values and press Calculate. Results appear here.

  • • Result

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

  1. Pick start date.
  2. Pick end date.
  3. Press Calculate to see the result, and use Reset to start again.
Inputs of the Years Between Dates Calculator
InputWhat to enterAllowed values
Start dateA calendar date—
End dateA 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.

Results of example 1
ResultValue
Years, months and days33 years, 8 months, 24 days
Total days12322

Example 2

Inputs: Start date = 2000-01-01; End date = 2025-01-01.

Results of example 2
ResultValue
Years, months and days25 years
Total days9132

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.

Choosing between the Years Between Dates Calculator and similar calculators
CalculatorYou enterIt 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 dateWeeks and days
[Months Between Dates Calculator](/date-calendar/months-between-dates-calculator/)start date and end dateMonths and days
[Date Calculator](/date-calendar/date-calculator/)start date and operationResulting date
[Days Until Calculator](/date-calendar/days-until-calculator/)target dateDays 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.

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.