[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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.