So I had this code which was buggy and it saved dates randomly in "m-d-yyyy" OR "mm-dd-yyyy" OR "yyyy-mm-dd" OR "yyyy-m-d".
How can I, in a query fetch data from this column so that the date is always in "YYYY-MM-DD" format?
I've tried this, but it doesn't seem to work
DATE_FORMAT(c.tx_date, ('%Y-%m-%d')) as tx_date
Any guidance would be appreciated.