The dow() function returns a value corresponding to the day of the week a date falls on.
dow(date)
• date – A date or datetime value.
An integer between 0 and 6. The table lists the return values and the corresponding day of the week.
Value |
Day |
---|---|
0 |
Sunday |
1 |
Monday |
2 |
Tuesday |
3 |
Wednesday |
4 |
Thursday |
5 |
Friday |
6 |
Saturday |