Math & education

Date Calculator

Find calendar days and weekdays between ISO dates, choose inclusive counting, or add a signed whole-day interval without daylight-saving drift.

Runs locallyKeyboard friendlyUpdated: August 30, 2026

Calculation method version: DATE_TIME-1.0 · Last reviewed: 2026-08-30

Enter your scenario

Results update as valid inputs change. Correct any highlighted field before relying on the answer.

Choose a comparison or a signed date shift.
The first date in the comparison or the date to shift.
The second date in the comparison.
Inclusive counting adds one day in the direction of the interval.

Primary result

Calendar-day difference29 days
Count under selected rule29 days
Full weeks plus days4 weeks, 1 days
Weekdays (Mon–Fri)20
Starting date2026-08-01
Ending date2026-08-30
From 2026-08-01 to 2026-08-30 is 29 calendar days before the optional inclusive-end adjustment.
Weekday count excludes Saturdays and Sundays but does not remove public holidays.
Use the result

From calculation to decision

Use comparison mode for elapsed calendar boundaries and add mode for a schedule date. Preserve the signed result when the order of the dates matters.

What changes the result most

Date order, operation, and inclusive-end choice usually move the result most. Inclusive counting changes a count by one, while weekends change the weekday count but not calendar days.

What to do next

Change one high-leverage input, compare the new result with the default, and confirm any current rate, policy, quote, or external rule that controls the real decision.

Save and report

Calculation happens in this browser. Shared links include the visible input values, so inspect the URL before sending a sensitive scenario.

If a result appears wrong, report an issue for this calculator.

When this calculation helps

Use comparison mode for elapsed calendar boundaries and add mode for a schedule date. Preserve the signed result when the order of the dates matters.

The result separates the primary answer from supporting values so you can see both the number and the assumptions that produced it. Adjust one field at a time when comparing scenarios; changing several inputs together makes it harder to identify why the answer moved.

Formula / methodology

Each valid YYYY-MM-DD civil date is represented at UTC midnight. This avoids turning a daylight-saving transition into a 23- or 25-hour “day.”

signed days = (end UTC − start UTC) ÷ 86,400,000 inclusive count = signed days ± 1 add mode = start date + signed whole days

The weekday count includes Monday through Friday and excludes weekends. It does not know which public holidays apply to a particular location or employer.

Assumptions and limitations

  • Inputs are civil dates, not instants with a clock time or timezone.
  • A day means a calendar boundary, not always 24 elapsed local hours.
  • Weekday results exclude Saturday and Sunday only.
  • The supported interval is bounded to 1,000 years.

Worked examples

Days between dates

August 1 through August 30, 2026 has a signed difference of 29 days. Turning on inclusive end produces a count of 30.

Subtract a deadline interval

Choose add mode and enter −14 to find the date two calendar weeks before the starting date.

Common mistakes

  • Mixing inclusive and exclusive counting without naming the rule.
  • Treating weekdays as business days with jurisdiction-specific holidays removed.
  • Using a date-only result where an exact timezone-aware timestamp is required.

FAQ

Why use UTC internally?

UTC midnight makes date-only subtraction stable across daylight-saving transitions.

Does weekday count remove holidays?

No. It removes weekends only; consult the applicable holiday calendar for a true business-day deadline.

Sources and assumptions

The method uses deterministic calendar arithmetic and is recorded in the Source Guide. Holiday and local deadline rules must come from the organization that controls the date.

Updated: August 30, 2026. Method: DATE_TIME-1.0. Inputs remain visitor-entered unless a data timestamp is shown beside them.

Calculator-specific review

Decision supported: Compare two civil dates or add a signed whole-day interval to a date.

Inputs and two scenarios

The inputs below are scenario controls, not facts supplied by a source. Change the values to see how this calculator responds to the decision you are making.

published default example: Starting date: 2026-08-01; Ending date: 2026-08-30; Calendar days to add: 30; Include the ending date: no; Date operation: Days between two dates. Expected output: Calendar-day difference: 29 days; Count under selected rule: 29 days; Full weeks plus days: 4 weeks, 1 days; Weekdays (Mon–Fri): 20.

materially different higher date calculator scenario: Starting date: 2025-01-15; Ending date: 2026-08-30; Calendar days to add: 45; Include the ending date: no; Date operation: Add or subtract calendar days. Expected output: Result date: 2025-03-01; Starting date: 2025-01-15; Calendar days added: 45; Result weekday: Saturday.

What changes the result

Inclusive-end choice changes counts by one; reversed dates preserve the direction of the interval.

Method and evidence boundary

ISO calendar dates are represented at UTC midnight; millisecond differences are divided by 86,400,000 and weekday counts exclude weekends. Calendar arithmetic is deterministic; the weekday result intentionally does not model jurisdiction-specific holidays.

Editorial review date: 2026-08-30. Recheck the entered assumptions against the current product documentation, quote, code, or professional guidance when the decision is consequential.