I have a date value in a column of string type that takes this format:
06-MAY-16 09.17.15
I want to convert it to this format:
20160506
I have tried using DATE_FORMAT(TO_DATE(<column>), 'yyyyMMdd')
but a NULL
value is returned.
Does anyone have any ideas about how to go about doing this in pyspark or spark SQL?
Thanks