Guides

How Many Seconds, Minutes, or Hours Are Between Two Dates?

Convert the time between two dates from days into seconds, minutes, or hours with sourced factors: 24, 1,440 and 86,400, plus week, month and year conversions.

Miryori Editorial Team2 min read
Try the Time Between Dates Calculator

The time between dates calculator reports spans in days by default, but the same interval can be shown in smaller or larger units. Once the day count is known, conversion is one multiplication or division.

Once you know the number of days between two dates, multiply by 24 to get hours, by 1,440 to get minutes, or by 86,400 to get seconds. To express the same span in larger units, divide by 7 for weeks, by about 31 for months (28, 30, or 29 in February), or by 365 for years (366 in leap years).

What are the day-to-unit conversion factors?

The source gives fixed factors for small units: 24 hours, 24×60=1,44024 \times 60 = 1{,}440 minutes, and 24×60×60=86,40024 \times 60 \times 60 = 86{,}400 seconds in a day.

hours=24 n,minutes=1,440 n,seconds=86,400 n\text{hours} = 24\,n, \qquad \text{minutes} = 1{,}440\,n, \qquad \text{seconds} = 86{,}400\,n

Unit Factor relative to one day Direction
Hours 24 Multiply days
Minutes 1,440 Multiply days
Seconds 86,400 Multiply days
Weeks 7 days Divide days
Months 31 days generally (28, 30, or 29 in February) Divide days
Years 365 days (366 in a leap year) Divide days

The calculator uses the same factors when you switch Time between from days to seconds or years.

How do you convert days into weeks, months, or years?

Going the other way, divide: 7 days per week, 31 days per month as the general figure (28, 30, or 29 in February), and 365 days per year (366 in leap years). These larger conversions are approximations because months and years vary in length.

Worked example: seven days in smaller units

The source's February 12 to February 19 example gives 19−12=719 - 12 = 7 days. That is 7×24=1687 \times 24 = 168 hours, 7×1,440=10,0807 \times 1{,}440 = 10{,}080 minutes, and 7×86,400=604,8007 \times 86{,}400 = 604{,}800 seconds, or exactly 1 week. Using 31-day months and 365-day years, it is roughly 0.23 months or 0.02 years.

Frequently Asked Questions

How many hours are in a day?

There are 24 hours in a day, so the hour total for any date span is 24 times its day count.

How many seconds are in a day?

There are 86,400 seconds in a day, because 24×60×60=86,40024 \times 60 \times 60 = 86{,}400.

Why are month and year conversions approximate?

Months have 28 to 31 days depending on the month and leap year, and leap years have 366 rather than 365 days. The 31-day month and 365-day year are rough conventions; the hour, minute and second factors are exact.

References

  • Omni's time between dates calculator: day-to-hour, minute and second factors, plus week, month and year notes.
  • The calculator's unit selector, which reports one span from seconds through years.
  • Calendar month lengths and leap-year counts as stated in the source.
Calculator

Time Between Dates Calculator

Calculate Time Between Dates with practical everyday formulas, interactive references and step-by-step results. Free, fast and private.

Try the Time Between Dates Calculator