Skip to main content

Duration.Days

Returns the days portion of a duration.

Syntax

Duration.Days(
duration as duration
) as number

Remarks

Returns the days portion of duration.

Examples

Example #1

Extract the number of days between two dates.

Duration.Days(#date(2022, 3, 4) - #date(2022, 2, 25))

Result:

7

Category

Duration