year

Get the year of a Date.

Signature

year: Number

Description

Extract the year from the instance date.

Return value

Type Description

Number

Year field of the calling date object.

Examples

Date('2099-02-10').year
2099
\