Business Day Check

date-time · C286 · starter-package 7.0.1

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.

DirectionConnectorTypeRequired
Inputvalue — DateTimedatetimeyes
InputtimeZone — Time Zonetextyes
InputweekendDays — Weekend Dayslistyes
Inputholidays — Holidayslistyes
Outputresult — Is Business Daybooleanon success
Outputreason — Reasontexton success
OutputlocalDate — Local Datetexton success
Outputweekday — ISO Weekdaynumberon success