I'm using PySpark to develop a Machine Learning project. I have a lot of records with a field that stores a date taken from MongoDB. This date is a string but contains a date in an isodate format.
How can I convert it to one of the date formats allowed by Apache Spark? In case is possible, I would need to convert the whole column which contains this date field.
Here's an example of this field in a JSON format:
"date": "2020-11-09T07:27:57.078Z"