CalcHive › Time › Date Difference Calculator

Date Difference Calculator

By Jason Smith · Updated October 22, 2026

The day line is the gap. Business days walk the local calendar.

Pick a start and an end. Total days divide the millisecond gap by 86,400,000. Business days count every date from the start through the end whose local weekday is not Sunday or Saturday.

The day line for these pairs

Total days = the end instant minus the start instant, divided by 86,400,000, then rounded. A date-only value is midnight UTC, so this gap is a whole number of days and it does not depend on the time zone. Weeks are that day count divided by 7, with the remainder dropped. The month line is the calendar year-and-month difference after borrowing. The difference line uses that calendar span when the span is at least a month, and otherwise it repeats the day count. For the pairs in this table, those four lines are the same in UTC and in the US time zones checked in the next section.

Difference, days, weeks, and months for these inputs. Business days are in the next table.
StartEndDifference lineDaysWeeksMonths
2026-03-022026-03-064 days400
2026-03-022026-03-020 days000
2026-03-062026-03-093 days300
2026-01-152026-02-151 months, 0 days3141
2024-01-012025-01-011 yr, 0 mo, 0 days3665212
2025-01-012026-01-011 yr, 0 mo, 0 days3655212

2026-03-02 through 2026-03-06 is four midnights, so the day line is 4, not 5. The same date in both boxes is 0 days. 2024-01-01 to 2025-01-01 includes the leap day, and the day line is 366. The next pair, 2025-01-01 to 2026-01-01, is 365. Both still read "1 yr, 0 mo, 0 days" because the calendar span is one year. 2026-01-15 to 2026-02-15 reads "1 months, 0 days" because that template always uses the plural "months". The month line is 1 and the day line is 31. An age in years, months, and days, including a birthday, is the Age Calculator. This page will not turn the span around if the end is earlier. It warns and hides the panel.

Business days use the local weekday of midnight UTC

The note under the result says "Business days (Mon-Fri, excluding holidays)." The script has no holiday list. It starts on the start instant, stops after the end instant, and counts a day when the local weekday number is not 0 (Sunday) and not 6 (Saturday). Both ends are included. A date-only string is parsed as midnight UTC. In a US time zone that instant is still the previous evening, so the walk uses the previous local weekdays. The day line does not move. The business-day line does.

Business-day line only. UTC column: UTC, London on these winter and early-March dates, and Tokyo. US column: Eastern, Central, Mountain, Pacific, Arizona, Alaska, and Hawaii.
StartEndBusiness days, UTC columnBusiness days, US column
2026-03-022026-03-0654
2026-03-022026-03-0210
2026-03-072026-03-0701
2026-03-062026-03-0922
2026-01-152026-02-152223
2024-01-012025-01-01263262
2025-01-012026-01-01262262

Monday 2026-03-02 counted through Friday 2026-03-06 is 5 business days in the UTC column and 4 in the US column. The same Monday is 1 business day in the UTC column, because the single day is included, and 0 in the US column, because that instant falls on the Sunday evening before. Saturday 2026-03-07 flips the other way: 0 in the UTC column and 1 in the US column. Friday 2026-03-06 to Monday 2026-03-09 is 2 in both columns. There is still no holiday removal in either column. A weekday holiday inside the span is counted. The day line remains the one to quote when the time zone of the computer should not change the answer.

← Back to Time calculators