Calculatorism

Workdays Calculator

Count weekdays (Mon–Fri) between two dates, excluding weekends.

Input Data

YYYY-MM-DD.
End
Whether to count the start and end dates if they are weekdays.

Results

21
工作日 21 天(含端點=true)

At a glance:Workdays = count of Monday–Friday dates in the range. Algorithm: iterate each day; getDay() = 0 (Sun) / 6 (Sat) is skipped, others counted. inclusive=true counts the start and end dates (if they are weekdays); false counts only the days strictly between. Public holidays are not excluded (subtract manually). Complements date-diff (calendar days).

Formula

workdays = Σ I(Mon ≤ d ≤ Fri), d over the range.

How to Use

  1. Enter the start and end dates and whether to include endpoints.
  2. The tool returns the workday count.

Case Studies

2026-08-01 (Sat) ~ 2026-08-02 (Sun)

Still 0 workdays even if inclusive (both weekends).

2026-08-03 (Mon) ~ 2026-08-07 (Fri)

5 workdays.

FAQ

Public holidays?

This tool only excludes weekends; subtract public holidays manually.

Negative range?

If end is before start, they are swapped and a positive count is returned.

Vs date-diff?

That counts calendar days; this counts weekdays.

Endpoints?

When inclusive, start/end are counted if they fall on a weekday.

Precision?

Whole days.

Applications?

Lead time, project days, attendance, interest accrual (some use actual/360).

Related Tools

References

Content review: Calculatorism Lifestyle Team. Results are for reference only; please refer to the relevant authorities for the official figures.

Found a problem with the results?

If this calculator's result is wrong, or you have any question about the calculation logic, please let us know. You are viewing:Workdays Calculator(/everyday-life/workdays)。