Check Holiday
Check Holiday
Checks whether a specific date is a holiday based on the list of holidays defined in the Date and time settings action, returning true or false. Useful for creating business rules that depend on the calendar — such as avoiding scheduling on holidays or applying different rules to special dates.
Options
Date settings
Select the Date and time settings action that contains the list of holidays to be checked. Without it, the action cannot identify holidays and fails during execution.
Use a date relative to the robot's execution?
Defines whether the date checked will be the current date at the moment of the execution. Select Yes to use the current date automatically, or No to provide a specific date.
Input format date
Select the format of the date provided: Traditional (31/12/2024), In full (31 de dezembro de 2024) or International (2024-12-31). This field is only shown when Use a date relative to the robot's execution? is set to No.
Date to be formatted
Enter the date that will be checked as a holiday. This field is only shown when Use a date relative to the robot's execution? is set to No.
Returns
Javascript code
actions["action-id"].isHoliday // true if the date is a holiday, false otherwise (Boolean)
Field selection
- isHoliday — indicates whether the date checked is a holiday (Boolean)
Rules and Conditions
- The Date settings field must be filled in for the action to work.
- When Use a date relative to the robot's execution? is No, the date provided must match the format selected in Input format date.
- The date is checked both against the list of holidays and against the days of the week configured as weekly holidays.