WEEKDAY()

The WEEKDAY() operator extracts the day of the week of a date time expression.

Syntax

WEEKDAY ( expr )
  1. expr is a date / time expression.

Usage

Returns a positive whole number between 0 and 6 corresponding to the day of the week implied by its operand.

The integer 0 (Zero) represents Sunday.

MAIN
  DISPLAY WEEKDAY( TODAY )
  DISPLAY WEEKDAY( CURRENT )
END MAIN