MDN Date & Time Tools
Count the working days between two dates with the weekends you actually keep and your own list of excluded dates. Start and end inclusion are separate switches, so the same pair of dates can be counted either way on purpose.
Business days between two dates
0 business days
- Calendar days counted
- —
- Weekend days inside the range
- —
- Excluded dates applied
- —
- Range
- —
A date that is both a weekend day and an excluded date is counted once, as a weekend day, so it is never subtracted twice.
What counts as a business day here
A business day is a date inside your range that is not one of the weekend days you ticked and not one of the excluded dates you listed. That is the whole rule. It is deliberately narrow, because “business day” means different things to a bank in London, a factory in Shenzhen and a shop that opens seven days a week.
The count is a date-only calculation. Weekends and daylight saving changes do not interact, so counting working days across a clock change is no different from counting them across an ordinary week.
No holiday calendar, on purpose
Public holidays move. Some follow a lunar calendar, some are announced a year ahead, some are regional rather than national, and some are substituted when they fall on a weekend. A hard-coded list would go stale silently and give confidently wrong answers. This tool therefore asks you for the dates instead, and shows exactly which of your dates were applied and which were ignored because they fell outside the range or on a weekend.
If a date you enter is not a working day in the country you care about, add it to the list. The result is then exactly as good as the list you supply, and the page never implies otherwise.
Common questions
Does the start or end date count?
You decide, with two separate switches. Both are included by default. If the start date falls on a weekend or an excluded date it is not counted anyway, whatever the switch says.
What if the end date is before the start date?
The range is read in the direction that makes sense and the page labels it as reversed, so a typo cannot quietly produce a positive count that looks correct.
Can I use this for payroll or invoicing?
It gives a reliable working-day count for the weekends and dates you supply. It is not a payroll system and does not know statutory holidays, collective agreements or local labour rules.