| Financial Toolbox | Search  Help Desk |
| weekday | Examples See Also |
Syntax
[d, w] = weekday(t)
Description
[d, w] = weekday(t)
returns the day of the week in numeric d and string form w given a serial date number or date string t. The days of the week have these values:
d w
1 Sun
2 Mon
3 Tue
4 Wed
5 Thu
6 Fri
7 Sat
Note:
Example
[d, w] = weekday(729736)or
[d, w] = weekday('12-Dec-1997')
returns
d =6w =Fri
See Also
datenum, datestr, datevec, day