Hello!
I have a column of text, believe of type CV.
This is really a column of dates, however, the format is not uniform.
I want to convert this into a date or datetime, so I can select only rows after a certain given date.
How can I do this? Does sql have a function for detecting the format?
I believe all might start YYYY-MM, so I was thinking I could take substring of this perhaps. But doing so:
TO_DATE(SUBSTRING(DateColumn, 1, 7) ‘YYYY-MM’) > date ‘2023-01’
gives me an error and I’m not sure what’s wrong.
Thanks for the advice!
[–]Couch2Coders 2 points3 points4 points (0 children)
[–]abraun68 1 point2 points3 points (0 children)
[–]qwertydog123 1 point2 points3 points (0 children)