Financial Toolbox | ![]() ![]() |
Syntax
[DayNum, DayString] = weekday(Date)
Description
[DayNum, DayString] = weekday(Date)
returns the day of the week in numeric and string form given the date as a serial date number or date string. The days of the week have these values.
DayNum |
DayString |
1 |
Sun |
2 |
Mon |
3 |
Tue |
4 |
Wed |
5 |
Thu |
6 |
Fri |
7 |
Sat |
Note: This function now ships with basic MATLAB. It originally shipped only with the Financial Toolbox. This description remains here for your convenience. |
Examples
[DayNum, DayString] = weekday(730845)or
[DayNum, DayString] = weekday('25-Dec-2000')returns
DayNum =
2
DayString=
Mon
See Also
datenum
, datestr
, datevec
, day
![]() | ugarchsim | wrkdydif | ![]() |