INT_TO_DATE_UDF

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

Definition

UDF that reproduces Teradata's NUMERIC-TO-DATE functionality

PUBLIC.INT_TO_DATE_UDF(NUMERIC_EXPRESSION INTEGER)

Parameters

NUMERIC_EXPRESSION INTEGER

A value that represents a DATE Type

Returns

Input number converted into a date data type.

Example

Input:

SELECT * FROM table1 
WHERE date_column > 1011219 

Output:

SELECT
* FROM
table1
WHERE date_column > PUBLIC.INT_TO_DATE_UDF( 1011219);

Last updated