%% Determine the Day of the Month for Various Date Formats
% Find the day of the month using a serial date number.

DayMonth = day(730544)

%
% Find the day of the month using a date character vector.

DayMonth = day('2/28/00')

%
% Find the day of the month using a date character vector with an optional argument F for a country-specific date format.

DayMonth = day('28/02/00','dd/mm/yyyy')

% Copyright 2012 The MathWorks, Inc.