The rdayofweek() function
The rdayofweek() function returns the day of the week as an integer value for an internal DATE.
Syntax
mint rdayofweek(jdate)
int4 jdate;
- jdate
- The internal representation of the date.
Return values
- 0
- Sunday
- 1
- Monday
- 2
- Tuesday
- 3
- Wednesday
- 4
- Thursday
- 5
- Friday
- 6
- Saturday