Reputation: 165
Hello I need varchar to date.
My varchar looks like this:
This is my desired output:
Any ideas? Thanks in advance!
Here is the error I get when trying to_date:
Upvotes: 1
Views: 285
Reputation: 165
Thanks for the solution, @Felipe Hoffa!
Solution: select to_date('Oct 2, 2020', 'MON DD, YYYY')
Upvotes: 0
Reputation: 59175
The format you should use is 'MON DD, YYYY'
:
select to_date('Oct 2, 2020', 'MON DD, YYYY')
Upvotes: 1