TO_CHAR(DateTime) Argument Types and Rules - 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
  • Expressions passed to this function must have the following data types:
    • date_timestamp_value= DATE, TIME, TIME WITH TIME ZONE, TIMESTAMP, TIMESTAMP WITH TIME ZONE, or an Interval data type, such as INTERVAL YEAR TO MONTH.
    • format_arg = CHAR or VARCHAR
  • Digits in fractional seconds are truncated in the timestamp value depending on the result format string that is specified.