Year of date
returns
the year of date given a serial date number or a date character vector, Year
= year(___,F
)Date
,
using format defined by the optional input F
. Date
can
be a character array where each row corresponds to one date character
vector, or a one-dimensional cell array of character vectors. All
the character vectors in Date
must have the same
format F
. F
must designate
a supported date format symbol. For more information on supported
date formats, see datestr
.