YEAR

YEAR(arg1) → { number | string | boolean }

Returns the year of a date, an integer in the range 1900-9999..

Parameters:

Name Type Description
arg1 number

Is a number in the date-time code used by Microsoft Excel.

Returns:

Type
number | string | boolean