<< toc | Time functions |
number = weekday(D) |
[number, name] = weekday(D) |
[number, name] = weekday(D, form) |
[number, name] = weekday(D, language) |
[number, name] = weekday(D, form, language) |
Serial date numbers or text representing dates and times (vector, matrix, character vector, cell array of character vectors, string array or character array).
a string: 'short' (default) or 'long'.
a string: 'en_US' (default) or 'local'.
array of integers values in the range [1, 7].
character array. if 'local' output uses current local if day name is available as translation.
dayweek returns the day of the week as a number in number and as a string in name.
[DayNumber, DayName] = weekday(datenum('12-21-2012'), 'long', 'en_US')
[DayNumber, DayName] = weekday(datenum('12-21-2012'), 'long', 'local')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET