day of week
the day of week of a datetime
(datetime subject) -> long
Returns the day of week of the given datetime.
The returned number represents a day of week as per the following mapping.
Nr | Day of week |
---|---|
1 | Monday |
2 | Tuesday |
3 | Wednesday |
4 | Thursday |
5 | Friday |
6 | Saturday |
7 | Sunday |
Returns nil
if given datetime is nil
Parameters
Name | Type | Description |
---|---|---|
subject |
datetime | The datetime to work with |