Skip to content

networkdays

Number of working days between two dates.

v = networkdays(start_date, end_date, holidays)

Returns the count of weekdays (Mon–Fri) in the range [start_date, end_date], excluding any dates listed in the optional holidays vector. Both endpoints are inclusive.

networkdays(date(2026,1,1), date(2026,1,31)) % 22
  • workday — Date a number of workdays after a given start.
  • weekday — Day of the week.