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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Date | Date to subtract from (Decrease) | Robin.DateTime | Yes | |
Subtract date | The date to be subtracted from the «Date» field (subtracted) | Robin.DateTime | Yes | |
Calendar | Production calendar (non-working days) | Robin.Collection | Yes | |
Days type | Rule for using non-working days from the production calendar when subtracting dates | Robin.String | Yes | |
Return type | Select the type of result. The result of subtraction can be obtained in: days, hours, minutes, seconds, ticks | Robin.String | No | |
Results | ||||
Result | Result | Robin.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
- Set the parameters for the "Subtract date using production calendar" action:
In the Calendar field, specify a collection of dates: - Click on the "Start" button in the top panel.
Result
The program robot has completed successfully. The number of working days has been determined.
Обзор
Инструменты контента