rdayofweek()

Returns the day of the week of a date that is in the native database format.

Syntax

mint rdayofweek(int4 jdate);
  1. jdate is the internal representation of the date.

Returns

Table 1. Return codes
Code Description
<0 Invalid date value
0 Sunday
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday