CENTURY_UDF

This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.

Definition

Determines to which century a date belongs.

PUBLIC.CENTURY_UDF(INPUT TIMESTAMP_TZ)

Parameters

INPUT TIMESTAMP_TZ

The date to calculate the century.

Returns

Returns a varchar with the century from which a date comes.

Usage example

Input:

SELECT PUBLIC.CENTURY_UDF(DATE '1915-02-23');

Output:

'20'

Last updated