The short rule
To measure elapsed time, subtract the start from the end. Midnight on July 1 to midnight on July 2 is one day.
To count every calendar date touched by a period, include both endpoints. July 1 and July 2 then count as two calendar days.
Three examples with nearby dates
| Period | Elapsed interval | Inclusive count |
|---|---|---|
| July 1, 00:00 → July 2, 00:00 | 1 day | 2 calendar dates |
| July 1, 00:00 → July 3, 00:00 | 2 days | 3 calendar dates |
| July 1, 12:00 → July 2, 06:00 | 18 hours | Not useful for a partial day |
A hotel stay adds another convention. Check-in on July 1 and check-out on July 3 usually means two nights, even though the booking touches three dates. The label matters as much as the math.
Calendar days are not always 24 hours
A calendar day changes at midnight. A 24-hour period ends exactly 24 hours after it starts. Daylight saving changes can make the time between consecutive local midnights 23 or 25 hours.
Use calendar boundaries for itineraries, date lists, and nights away. Use exact timestamps and time zones for tickets, timers, and submission deadlines.
Months, leap years, and month ends
Dividing seconds by 30 does not produce a reliable calendar-month count. Months contain 28 to 31 days, and leap years add February 29.
- February 28 to March 1 is one calendar day in most years.
- February 28 to March 1, 2024 is two days because February 29 sits between them.
- January 31 to the last day of February is better described as one calendar month than a fixed 30-day span.
How our calculator counts
Open the time-between-dates calculator and enter both timestamps. It expresses the same interval in seconds, minutes, hours, days, weeks, months, and years.
- The calculator uses the absolute interval, so reversing the dates does not change the result.
- It reads both values in your device's local time zone. You cannot assign a separate zone to each value.
- Month and year formats use calendar components instead of dividing by 30 or 365.
- It does not count both endpoint dates. Add one calendar day yourself when your rule is explicitly inclusive.
When this calculator is not enough
A general date calculator does not know your company's workweek or a country's public holidays. Business-day calculations need a calendar for the relevant country and year.
For legal or contractual deadlines, check whether the triggering date counts, what happens when the deadline lands on a non-working day, and which time zone governs the document. Two timestamps cannot answer those policy questions.