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, minutes, and seconds in a day.
| 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 days. That is hours, minutes, and 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 .
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.