%% Return Full Day Names in Local Language
% Return a day name in U.S. English using the language input argument.

D = 728647;
DayForm = 'long';
language = 'en_US';
[DayNumber,DayName] = weekday(D,DayForm,language)

% In U.S. English, the name of the day of the week is Monday.
%
% Return day names in the language of the current locale.

language = 'local';
[DayNumber,DayName] = weekday(D,DayForm,language);

% The value of DayName depends on the locale. For example, in a French locale, the name of the day of the week is Lundi.
% Copyright 2012 The MathWorks, Inc.