Skip to main content
Scalar function
Returns NULL for NULL input.

Syntax

Scalar

Arguments

Returns

  • Type: INTEGER
  • Possible values: 0 (Monday) through 6 (Sunday).
  • NULL behavior: Returns NULL for NULL input.

Properties

Examples

Friday

Monday

Sunday

Limitations

  • This form takes TIMESTAMP. DATE input requires conversion to TIMESTAMP.
Last modified on October 15, 2026