Skip to main content

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​

InputTypeRequiredDefaultWhat it is
StartDateTimeYesEarlier date.
EndDateTimeYesLater date.
UnitStringNodaysResult unit; business_days counts working days after start up to and including end.
AbsoluteBooleanNofalseReturn the size of the difference without a minus sign when end is before start.
HolidaysListNoDates that are not working days, e.g. ["2026-12-25"].

Outputs​

OutputTypeWhat it is
resultNumberDifference.