datetime class : DayOfWeek getter
Description
Gets the day of the week.
Syntax
datetimeInstance.DayOfWeek
Arguments
None
Return value
Class | Description |
int | The day of the week. |
Sample code
1: | datetime dt = new datetime(2019, 1, 6, 15, 29, 0); |
2: | int dayofweek = dt.DayOfWeek; // 0 |
Notes
It's a wrapper of the System.DateTime.DayOfWeek property.
Sunday = 0
Monday = 1
Tuesday = 2
Wednesday = 3
Thursday = 4
Friday = 5
Saturday = 6
This getter was added in the Ver 1.0.0.1.