Del via


Date.Year

Date.Year(dateTime as any) as nullable number

Omtrent

Returnerer årskomponenten for den angivne datetime værdi dateTime.

Eksempel 1

Find året i #datetime(2011, 12, 31, 9, 15, 36).

brug

Date.Year(#datetime(2011, 12, 31, 9, 15, 36))

output

2011