Date.Year

About

Returns the year from a DateTime value.

Syntax

Date.Year(dateTime as datetime) as nullable number  

Arguments

Argument Description
date The Date to retrieve the year for.

Example

Date.Year(DateTime.FromText("2011-02-19")) equals 2011