Skip to main content

Duration

The Duration function calculates the duration between two dates.

Parameters

UnitREQUIRED
The time unit for the output.

Input

from datetimeREQUIRED
The start date and time.
to datetimeREQUIRED
The end date and time.

Output

Number

The duration between the two dates in milliseconds.