I have some strange (string) date format which I want to convert into a more sensible timestamp (e.g. Unix as YYYY-MM-DD) in Pyspark (Pandas is also fine).
Input (examples):
So instead of 17.3.2021 (which stands for 17th of March 2021) I want to have the format "2021-03-17"
"2.3.2021" stands for 2nd March 2021 and should be converted in "2021-03-02". So the problem is that as well Months as Days will be shown in one-digit for the 1st to 9th day respective January to september. With the "to_date" in Pyspark it didn't work as well as every transformation which I tried in Pandas lead to invalid values or errors.
Thank you very much in advance
