In my dataframe, I have multiple date formats that I want to change into a universal format.
1) "12/01/2011 11:25 PM"
2) "Thu, Dec 1 8:15 AM"
3) "Dec.01, 2011 4:00 p.m"
4) "2011 - 12 - 01 10:33 AM"
5) "12/1/2011 12:18PM "
6) "12/1/11 2:06 PM (-05:00)"
7) "2:07 PMDec 01"
8) "12:18 PM, Dec 01"
parse(x)
fails in these formats:
6) "12/1/11 2:06 PM (-05:00)"
7) "2:07 PMDec 01"
Is there any way to create arguments for these custom date formats?
Use:
Following the code for your examples:
Please refer to https://www.w3schools.com/python/python_datetime.asp for a legal format codes.