Action group: Dates' convertion
Subtract another date from one date using the production calendar (non-working days).
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 |
In the "Calendar" field it is possible to specify the result of the "Get production calendar" action.
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
The program robot has completed successfully. The number of working days has been determined.