[DayNumber,DayName]
= weekday(D,language) returns
the abbreviated name for the day of the week in the language of the
locale specified in language.
[DayNumber,DayName]
= weekday(D,DayForm,language)
returns the name for the day of the week in the specified format and
in the language of the specified locale. You can specify DayForm and language in
either order.
Determine the day of the week for a date specified in the format mmm.dd.yyyy. Call datenum inside of weekday to specify the format of the input text representing a date.
Serial date numbers or text representing dates and times. Date numbers can be specified as a
vector or matrix. Text can be specified as a character vector, a cell array
of character vectors, a string array, or a character array where each row
represents a date. If D is a cell array of character
vectors or a string array, then it must be 1-by-n or
n-by-1.
If D is a character vector, a cell array of character vectors, a string
array, or a character array, then the dates can be in one of the following
formats.
Date Format
Example
dd-mmm-yyyy
01-Mar-2000
mm/dd/yyyy
03/01/2000
yyyy-mm-dd
2000-03-01
For text representing dates in other formats, first convert
the dates to serial date numbers using the datenum function,
before passing them to weekday.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: United States.
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.