Skip to main content
Scalar function
NULL input returns NULL.

Syntax

Scalar

Arguments

Returns

  • Type: INTEGER
  • Possible values: Sunday=1 through Saturday=7.
  • NULL behavior: NULL input returns NULL.

Properties

Usage notes

  • Date and time components are returned as INTEGER.
  • Deterministic: The same inputs and settings produce the same result.

Examples

Typical behavior

Sunday and Monday numbering

Last modified on October 15, 2026