Expressions.expr-primary-odbc-datetime

Use the D, T, or TS keywords to specify a date, time, or timestamp value.

Format

{{ { D | T | TS } { 'DateTime' | ? | ( DateTimeExpr ) } }}

Remarks

Follow the D, T, or TS keyword by the DateTime value.

The DateTime value can be one of the following:

The resulting string is interpreted as an SQL date, time, or timestamp literal. The following table describes the required format for each type:

Type Format
D YYYY-MM-DD
T HH:MM:SS[.FFFFFF]
TS YYYY-MM-DD HH:MM:SS[.FFFFFF]

For T and TS types, the fractional seconds part [.FFFFFF] is optional.

Example:

{D '2025-01-31'}

{T '12:55:00.000'}

{TS '2025-01-31 12:55:00.000'}