PERIOD(TIMESTAMP) to PERIOD(DATE) - 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

A PERIOD(TIMESTAMP(n) [WITH TIME ZONE]) value can be cast as PERIOD(DATE) using the CAST function.

Each result element is each set to the date portion of the corresponding source bound after the source bound is adjusted according to the current session time zone. The adjustment is not done for the source ending bound if that bound is the maximum value. If the adjustment for time zone changes the date, the changed value is used. If the result date portions are the same, an error is reported.