Subtract date Version 6 (Python)

Action group: Dates convertion


Description

The action subtracts one date from another

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
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

None.

Example of use

Task

Get the difference in days between the dates 05.09.2022 and 16.06.2020.

Solution

Use the "Subtract date" action.

Implementation

  1. Set the "Subtract date" action parameters.
  2. Click "Start" in the top panel.

Result

The program robot completed successfully. The difference in days between the dates was obtained.

 

  • Нет меток