Business days between dates

Count Monday-to-Friday weekdays between two selected dates.

Example: Monday to Friday in the same week = 4 business days under this convention.

Your inputs stay in your browser.

Method and assumptions

Method version 1.0.0 · Updated

Count business days

Formula: Weekdays from the day after the start date through the end date, inclusive

Example: Monday to Friday in the same week = 4 business days under this convention.

start
Start date
end
End date

The start date is excluded and the end date included. Only Saturdays and Sundays are excluded. Public holidays and country-specific calendars are not included. A negative result means the dates were entered in reverse order.

Calculate with code

These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.

JavaScript
const start = new Date(Date.UTC(2026, 0, 5));
let weekdays = 0;
for (let d = new Date(start); d < new Date(Date.UTC(2026, 0, 12)); d.setUTCDate(d.getUTCDate() + 1)) if (d.getUTCDay() % 6) weekdays++;
console.log(weekdays); // 5 (holidays excluded separately)
TypeScript
const start = new Date(Date.UTC(2026, 0, 5));
let weekdays = 0;
for (let d = new Date(start); d < new Date(Date.UTC(2026, 0, 12)); d.setUTCDate(d.getUTCDate() + 1)) if (d.getUTCDay() % 6) weekdays++;
console.log(weekdays); // 5
Python
from datetime import date
from numpy import busday_count
print(busday_count(date(2026, 1, 5), date(2026, 1, 12)))  # 5 weekdays
Java
var start = java.time.LocalDate.of(2026, 1, 5);
var end = java.time.LocalDate.of(2026, 1, 12);
long count = start.datesUntil(end).filter(d -> d.getDayOfWeek().getValue() < 6).count();
System.out.println(count); // 5
C#
var start = new DateOnly(2026, 1, 5);
var end = new DateOnly(2026, 1, 12);
int count = Enumerable.Range(0, end.DayNumber - start.DayNumber).Count(i => start.AddDays(i).DayOfWeek is not (DayOfWeek.Saturday or DayOfWeek.Sunday));
Console.WriteLine(count); // 5