Date literals
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
A date literal specifies a day, month, and year using any of the following formats, enclosed in single quotation marks ( ' ' ).
Syntax
This is the syntax for date literals:
|
Parameter
- { d 'yyyy-mm-dd'}
-
A date literal enclosed in an escape clause is compatible with ODBC. Precede the literal string with an open brace (
{) and a lowercased. End the literal with a close brace )}). If you use the ODBC escape clause, you must specify the date using the format yyyy-mm-dd.
Notes
Date literals
must be enclosed in single quotations, such as the case with column
values in an INSERT statement.
Example
The
following example illustrates how to use the date literal format
with an INSERT statement:
|
The INSERT and SELECT statements
in the following example show some of the supported formats for
date literals:
|