Day of Week

Returns an integer that represents the day of the week for a specific date.

Example 

1SELECT OrderDate as "date", EXTRACT (DOW FROM OrderDate) as "day_of_week" FROM "dates_sample_data";
dateday_of_week
2015-01-21 15:30:003
2015-01-21 00:00:003
2015-01-31 10:00:306
2015-02-03 15:30:002
2016-01-21 23:59:594
2015-10-31 23:59:596
2015-12-03 00:00:004
2016-01-11 03:30:001
2016-01-11 03:30:001