Make calculations on dates taking care of public holidays


#1

What is the use case

In some of our processes, we would like to be able to calculate some dates without taking into account public holidays and weekend days.

How do you see a solution for the use case?

To resolve this we have created a custom activity which can skip holidays given a country code (eg: FR or US), a date (DateTime object) and a number of days (eg: +4 or -30). The country code is used in order to identify the calendar to use (FR public holidays are not the same as US ones), by default RO is selected :wink: .
The activity uses this API : https://date.nager.at, here you can have the exhausted list of country codes you can use and its calendar.

Activity: Custom.Date.Activities.1.0.0.5.nupkg (46.3 KB)

Screenshot:

Scope: Custom Activity