Classify a local date using caller-supplied ISO weekend numbers and explicit YYYY-MM-DD holidays.
Inputs
- DateTime (datetime, required): valid DateTime value.
- Time Zone (text, required): strict text.
- Weekend Days (list, required): strict dense list.
- Holidays (list, required): strict dense list.
Outputs
- Is Business Day (boolean): boolean.
- Reason (text): strict text.
- Local Date (text): strict text.
- ISO Weekday (number): strict finite number.
How it behaves
Makes no regional assumptions. Weekend Days is a unique list using 1=Monday through 7=Sunday and may be empty. Holidays is a unique list of real local YYYY-MM-DD dates and may be empty. Reason is holiday when both rules match, otherwise weekend or business-day.
Errors and recovery
When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.
Execution stops for malformed/hostile lists, duplicate or invalid weekdays/dates, unknown zones, malformed DateTimes, or excessive holiday input.
Connector data types
The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | value — DateTime | datetime | yes |
| Input | timeZone — Time Zone | text | yes |
| Input | weekendDays — Weekend Days | list | yes |
| Input | holidays — Holidays | list | yes |
| Output | result — Is Business Day | boolean | on success |
| Output | reason — Reason | text | on success |
| Output | localDate — Local Date | text | on success |
| Output | weekday — ISO Weekday | number | on success |
