Omni Calculator logo
Last updated:

Years Between Two Dates Calculator

New

Table of contents

What is a year?How to use the years between two dates calculatorExample of calculating the number of years between two datesOther time counter calculatorsFAQs

The years between two dates calculator will help you find the time difference between any two dates in terms of years. Perfect for working out people's ages. And with Omni Calculator's variable unit switcher, you also have the choice of displaying the results in months, days, hours, etc.

Read on to find out about:

  • What is a year, and how is it defined?
  • How to calculate years between two dates.
  • How long is 30 months?
  • How long ago was 2013?

What is a year?

A year is the time it takes for the Earth to complete one complete circuit around the Sun. Unfortunately, the Earth doesn't finish its journey in a whole number of days – very inconvenient.

In days, a year is 365.25 days long. Since we don't have the concept of quarter days on our calendars, we add an extra day in a year, every four years. So over a period of 4 years, the math works out. Well almost. From time to time, we also add leap seconds to keep reality aligned with the calendar.

Since there are 86,400 seconds in a day, the number of seconds in an average year is 31,557,600 seconds (86,400 × 365.25).

How to use the years between two dates calculator

It is really easy to use the years between two dates calculator.

  1. Enter a start date in the calculator's "From" field.
  2. Next, enter the date you want to end on in the "To" field.
  3. You will immediately see the length of time between these two dates in years as a decimal number.
  4. Additionally, you can change the output to other time units, such as months, weeks, and days.

In the years between two dates calculator, the end date is not taken into account by default. Adding it is as simple as checking the "Include end date?" option.

Example of calculating the number of years between two dates

To calculate the number of years between two dates in decimal form, first, find the number of days between the dates. Don't forget to include any extra days (i.e., February 29) in leap years between the dates.

Let's take the time between July 11, 2022 and January 1, 2020. Counting the days on the calendar, there are 922 days between the two dates, including one February 29. To get the number of years, divide this number by 365.25:

922 / 365.25 = 2.524 years

And that's an example of how to calculate the years between two dates.

Other time counter calculators

Other time counting calculators that may be very soon of interest to you are listed below:

FAQs

How long ago was 2013?

12 years. That's assuming the year is still 2025. But it's straightforward to calculate the number of whole years between two dates:

  1. Take the year number of the current date. That's 2025, in this example.
  2. Then take the year number of the date in the past. 2013, in this case.
  3. Subtract 2013 away from 2025.
  4. The result is 12 years.

How long is 30 months?

Two and a half years. By definition, there are 12 months in a year. So you convert a number of months to years, divide the number of months by 12. So in this case, 30/12 = 2.5 years.

Check out 33 similar time and date calculators ⏳
8-hour shiftAdd timeAge...30 more