Snowflake date format change

354 Views Asked by At

Is there an easy way convert a date format from ('2020-11-17') to November 17,2020 in snowflake.

Thanks

2

There are 2 best solutions below

4
Zoom On

I SOLVED THIS PROBLEM USING BELOW SYNTAX:

TO_CHAR(date,'MMMM')||' '||TO_CHAR(date,'DD')||','||TO_CHAR(date,'yyyy')
0
Onyambu On

You should consider using:

TO_CHAR(date, 'MMMM DD yyyy')