is_business_day
Check if a date is a working day in a country, accounting for weekends, public holidays, and custom holidays. Returns the reason if not a business day.
Instructions
USE THIS to check whether a specific date is a working day before scheduling on it — do not assume any weekday is open. Returns whether the date is a business day in the given country and, if not, the precise reason (weekend, public holiday with its name, or a custom holiday). Country-correct weekends and public-holidays-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date, YYYY-MM-DD. | |
| country | Yes | ISO 3166-1 alpha-2 country code, e.g. US, GB, AE, SA, ZA. | |
| extraHolidays | No | Optional extra non-working dates (YYYY-MM-DD), e.g. a company shutdown day. |