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.
| Start | End | Difference line | Days | Weeks | Months |
|---|---|---|---|---|---|
| 2026-03-02 | 2026-03-06 | 4 days | 4 | 0 | 0 |
| 2026-03-02 | 2026-03-02 | 0 days | 0 | 0 | 0 |
| 2026-03-06 | 2026-03-09 | 3 days | 3 | 0 | 0 |
| 2026-01-15 | 2026-02-15 | 1 months, 0 days | 31 | 4 | 1 |
| 2024-01-01 | 2025-01-01 | 1 yr, 0 mo, 0 days | 366 | 52 | 12 |
| 2025-01-01 | 2026-01-01 | 1 yr, 0 mo, 0 days | 365 | 52 | 12 |
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.
| Start | End | Business days, UTC column | Business days, US column |
|---|---|---|---|
| 2026-03-02 | 2026-03-06 | 5 | 4 |
| 2026-03-02 | 2026-03-02 | 1 | 0 |
| 2026-03-07 | 2026-03-07 | 0 | 1 |
| 2026-03-06 | 2026-03-09 | 2 | 2 |
| 2026-01-15 | 2026-02-15 | 22 | 23 |
| 2024-01-01 | 2025-01-01 | 263 | 262 |
| 2025-01-01 | 2026-01-01 | 262 | 262 |
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.