My date format looks like this '201710'. I'm trying to convert this particular string to '2017-10-01'.
How can I convert from the above mentioned format to the required format in mysql ?
I have tried using the below query:
SELECT *, DATE_FORMAT(yymm,'%Y-%m-%d') AS niceDate
FROM table;
But the niceDate column is showing null.
Can anyone please help me out ....