Date arithmetic · Explicit counting

Date Difference

Compare two calendar dates without time-of-day or time-zone surprises. Choose whether the count includes both endpoints.

Exclusive elapsed-day counting omits the start date and includes each day crossed through the end date. The endpoints may be entered in either order.

Result

Counting conventions

Elapsed days are the absolute difference between two Gregorian dates. For December 28, 2026 and January 4, 2027, seven days elapse, which is exactly one full week. The inclusive date count is eight because it contains both December 28 and January 4.

Weekday totals exclude Saturdays and Sundays. Exclusive mode counts dates after the earlier endpoint through the later endpoint; inclusive mode includes both endpoints. If both inputs are the same date, the exclusive weekday count is zero and the inclusive count is one only when that date is Monday through Friday.

Dates are parsed from the browser’s ISO date input as year, month, and day fields. No local midnight timestamp is used, so daylight-saving changes do not alter the number of days.

This is a civil-date comparison tool. It does not calculate elapsed hours or account for time zones, times of day, holidays, or regional work-week rules.

Read the Gregorian date engine note for the arithmetic model, or inspect weekdays in the Calendar Explorer.