Example - 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™

In this example, the current timestamp is:

            Current TimeStamp(6)
--------------------------------
2010-03-09 19:23:27.620000+00:00

The following statement converts the TIMESTAMP value '2010-03-09 22:30:00-08:00' to a DATE value, where the time zone displacement is based on the time zone string, 'America Pacific'.

SELECT CAST(TIMESTAMP '2010-03-09 22:30:00-08:00' AS DATE 
   AT 'America Pacific');

The result of the query is:

2010-03-09 22:30:00-08:00
-------------------------
                 10/03/09