Share via


Duration.Days

Syntax

Duration.Days(duration as nullable duration) as nullable number

About

Returns the days portion of duration.

Example 1

Extract the number of days between two dates.

Usage

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

Output

7