%% Determine the Year of the Date for Various Dates
% Find the year for Date using a serial date number.

Year = year(731798.776)

%
% Find the year for Date using a date character vector format.

Year = year('05-Aug-2003')

%
% Use the optional F argument to designate a country-specific date format for a given Date.

Year = year('1999/05/09','yyyy/dd/mm')

% Copyright 2012 The MathWorks, Inc.