year

The year function determines the year in which the given date falls.

Category

Date

Return value

int

The number that represents the year component.

Where

<date>

The source date.