Using the FORMAT Phrase to Set DATE Formats - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

You can use the FORMAT phrase to set the format for a specific DATE column or DATE value. A FORMAT phrase overrides the DATE format of the system, user, and session.

Setting a different DATE format for a column with the FORMAT phrase has the same consequences as with any other method:
  • Data entry for that column must be in the new format or the ANSI DATE literal format.
  • To compare or convert strings to DATE values in the column, the strings must match that format.

A FORMAT phrase does not change the export data type of DATE values.

For details about using the FORMAT phrase, see FORMAT Phrase and DateTime Formats or FORMAT Phrase, DateTime Formats, and Japanese Character Sets.