See "Supported String Literature Formats for Date and Time" in the MSDN datetime article .
Yours {d 'XXXX-XX-XX'}is the ODBC date and time format. ODBC temporary escape sequences have the format { literal_type 'constant_value' }::
literal_type indicates the type of escape sequence. Timestamps have three literal_type qualifiers:
- d =
- t =
- ts = timestamp ( + )
'constant_value' - escape-. constant_value literal_type.
d > yyyy-mm-dd
t > hh:mm:ss[.fff]
ts > yyyy-mm-dd hh:mm:ss[.fff]