MDY(m,d,y) literals

MDY() literals define a DATE literal in an expression.

Syntax

MDY( month-integer, day-integer, year-integer )
  1. month-integer is an integer literal representing the month (1-12).
  2. day-integer is an integer literal representing the day in the month (1-31).
  3. year-integer is an integer literal representing a four-digit year.

Usage

Date MDY() literals are used to define the initializer value for a variable or the value of a constant of type DATE.

Note: Do not confuse the MDY() literal with an the MDY() operator.

Example

MAIN
  DEFINE d DATE = MDY(12,24,2018)
  DISPLAY "Date = ", d
END MAIN