I have a pyspark dataframe that has a field, time, that has timestamps in two formats,
"11-04-2019,00:32:13" and "2019-12-05T07:57:16.000Z"
How can I convert all the timestamp to the second format, which is the iso time format that matches this format?
%Y-%m-%dT%H:%M:%S.%fZ
So ideally values like "11-04-2019,00:32:13" should be "2019-11-04T00:32:13.000Z"