%% Determine the Month for Various Dates
% Find the month for Date using a serial date number.

[MonthNum, MonthString] = month(730368)

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

[MonthNum, MonthString] = month('05-Sep-1999')

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

[MonthNum, MonthString] = month('1999/05/09','yyyy/dd/mm')

% Copyright 2012 The MathWorks, Inc.