Subtract date using production calendar Version 2 (Net)

Action group: Dates' convertion


Description

Subtract another date from one date using the production calendar (non-working days). 

Action icon


Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
DateDate to subtract from (Decrease)Robin.DateTime
Yes
Subtract dateThe date to be subtracted from the «Date» field (subtracted)Robin.DateTime
Yes
CalendarProduction calendar (non-working days)Robin.Collection
Yes
Days typeRule for using non-working days from the production calendar when subtracting datesRobin.String
Yes
Return typeSelect the type of result. The result of subtraction can be obtained in: days, hours, minutes, seconds, ticksRobin.String
No
Results
ResultResultRobin.Numeric

Special conditions of use 

In the "Calendar" field it is possible to specify the result of the "Get production calendar" action. 

Example of use

Task

Determine the number of working days between the dates 05.09.2022 and 11.09.2022, given that 10.09.2022 and 11.09.2022 are weekends

Solution

Use the "Subtract date using production calendar" action.

Implementation

  1. Set the parameters for the "Subtract date using production calendar" action:


    In the Calendar field, specify a collection of dates:


  2. Click on the "Start" button in the top panel.

Result

The program robot has completed successfully. The number of working days has been determined. 



  • Нет меток