%% Return Day of Week of Date String
% Determine the day of the week of December 21, 2012.

D = '21-Dec-2012';
[DayNumber,DayName] = weekday(D)

% December 21, 2012 falls on a Friday.
% Copyright 2012 The MathWorks, Inc.