DAY_IN_WEEK

Returns a number representing the day of the week for "date_expression" 1 for Sunday, 7 for Saturday.

Syntax

DAY_IN_WEEK ( date_expression )

Example

DAY_IN_WEEK ( '2012-02-29' )

Result

4 (Wednesday)