The getYear() function of date object returns year (in minutes) of the specified date. Use it for example to get year (in minutes) of the specified date.
Syntax
This will produce following result