FORMAT Phrase and DateTime Formats | Data Types and Literals | Teradata Vantage - FORMAT Phrase and DateTime Formats - Teradata Vantage - Analytics Database

SQL Data Types and Literals

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
uds1628112204571.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
exs1472253032394
lifecycle
latest
Product Category
Teradata Vantage™

The date and time formatting characters in a FORMAT phrase determine the output of DATE, TIME, and TIMESTAMP information.

IF the data type is … THEN use formatting characters for …
  • DATE
  • PERIOD(DATE)
date information.

For Period types, the specified format is associated with both the beginning and ending bounds of the period.

  • TIME
  • TIME WITH TIME ZONE
  • PERIOD(TIME)
time information.

For Period types, the specified format is associated with both the beginning and ending bounds of the period.

  • TIMESTAMP
  • TIMESTAMP WITH TIME ZONE
  • PERIOD(TIMESTAMP)
date and time information.

Date formatting characters must be grouped separately from time formatting characters.

For Period types, the specified format is associated with both the beginning and ending bounds of the period.

Formatting characters are case-insensitive.