Difference between dates
Return end minus start in the chosen unit (may be fractional).
Command in the Date and time toolkit · id ooa.datetime/difference · 5 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Start | DateTime | Yes | Earlier date. | |
| End | DateTime | Yes | Later date. | |
| Unit | String | No | days | Result unit; business_days counts working days after start up to and including end. |
| Absolute | Boolean | No | false | Return the size of the difference without a minus sign when end is before start. |
| Holidays | List | No | Dates that are not working days, e.g. ["2026-12-25"]. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | Number | Difference. |