Skip to content
Advertisement

Converting string to a date but date not formatted properly

I am having issues with converting a string into a date. The issue is that the format of the string does not easily convert to a date. For example, all the dates are set up like APR-19, or JAN-21. I am not sure how to properly cast this. Here is the SQL I am using.

enter image description here

Advertisement

Answer

in PostgreSQL it is easy:

returns 2019-04-01

returns 2021-01-01

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement