16.20.16.20 - 16.20 - Example: Converting a Numeric Integer Expression to a Date Format - Teradata Vantage NewSQL Engine

Teradata Vantage™ Data Types and Literals

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

This example casts the numeric integer expression to a date format.

SELECT CAST (1071201 AS DATE);

The result looks like this when the DateForm mode of the session is set to ANSIDate:

   1071201
----------
2007-12-01