MATLAB Function Reference |
Syntax
[N,S] = weekday(D)
Description
[N,S] = weekday(D)
以數字 (N
) 和字串 (S
) 的形式傳回星期幾。 D
可以是日期序號或日期字串。一週的日子以下面的數字和縮寫表示:
N |
S |
N |
S |
1 |
Sun |
5 |
Thu |
2 |
Mon |
6 |
Fri |
3 |
Tue |
7 |
Sat |
4 |
Wed |
|
|
Examples
[n,s] = weekday(728647)
[n,s] = weekday('19-Dec-1994')
See Also
web | what |