The year is returned from a date using this method. =YEAR(01-01-00) returns 1900, whereas =YEAR(20-03-15) returns 2015.
Syntax:
=YEAR (date)
Parameter list:
date – The starting point for calculating the year. A cell reference to a cell holding a date, a function returning a date type, or a number are all acceptable options.
Example:
Ask Your Query