DATE

Description

Returns a Date constructed from the specified year, month, and day components.

Syntax

DATE(year, month, day) -> Date

Parameters

ParameterData TypeRequiredDescription
yearIntegerYesThe year component.
monthIntegerYesThe month component (1–12).
dayIntegerYesThe day component of the month.

Example

DATE(2005, 1, 2)
-- Returns 2005-01-02.