I'm trying to convert the dates in my date column from:
yyyy-mm-dd
to
Month dd, yyyy
So far i've tried the below:
SELECT To_char(sq2.date_column, Month DD, YYYY)
but get the below error, despite my pattern aligning to the documentation
ERROR: syntax error at or near "DD"
I noticed in the documentation that To_char isn't explicitly referenced for date conversion (only time). Also, i'm not necessarily trying to alter the DATE type to VARCHAR. I would be happy to keep the data in the date_column as DATE type and just change the pattern.