FULL_MONTH_NAME_UDF

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

Definition

Returns the complete name of a month either in uppercase, lowercase, or with only the first letter in uppercase.

PUBLIC.FULL_MONTH_NAME_UDF(INPUT TIMESTAMP_TZ, RESULTCASE VARCHAR)

Parameters

INPUT TIMESTAMP_TZ

The date to take the name of the month.

RESULTCASE VARCHAR

The case the result to be represented, accepted values are 'uppercase', 'lowercase', and 'capitalized'

Returns

Returns a varchar with the complete name of a month

Usage example

Input:

SELECT PUBLIC.FULL_MONTH_NAME_UDF(DATE '2021-10-26', 'uppercase');
SELECT PUBLIC.FULL_MONTH_NAME_UDF(DATE '2021-10-26', 'lowercase');
SELECT PUBLIC.FULL_MONTH_NAME_UDF(DATE '2021-10-26', 'firstOnly');

Output:

OCTOBER
october
October

Last updated