Owning Class: time
Requires: MathScript RT Module
w = weekday(s)
w = weekday(n)
[w, ws] = weekday(s)
[w, ws] = weekday(n)
Returns the day of the week.
| Name | Description |
|---|---|
| s | Specifies a time. s is a string. |
| n | Specifies the time. n is a double-precision, floating-point number. Use the now function to generate a number that represents the current date and time. |
| Name | Description |
|---|---|
| w | Returns the day of the week as a numeric. w returns 1 for Sunday, 2 for Monday, and so on. |
| ws | Returns the day of the week as a string. |
s = '05-Apr-06';
[w, ws] = weekday(s)