Counts the business days (Monday to Friday) between two dates, inclusive of both endpoints, and breaks the span down into business days, weekend days, and holiday days. Pass a country to also exclude its public holidays.
Both endpoints are counted. country is an ISO 3166-1 alpha-2 code; pass subdivision (ISO 3166-2) for regional holidays. Holiday data matches the holidays namespace. Max span ~20 years. Computed locally.
End date (YYYY-MM-DD or ISO 8601). Defaults to today.
Start date (YYYY-MM-DD or ISO 8601).
Optional ISO 3166-1 alpha-2 country code to exclude public holidays (e.g. US, DE).
Optional ISO 3166-2 subdivision code for regional holidays (e.g. CA, NSW).