I have a field in my dataframe df, labeled date, but after testing it a lot, I figured out that it is a string and not a date format.
Transaction_id | Date
ABC 4/1/2016 9:13:58 PM
CDE 10/3/2015 10:12:25 AM
EFG 12/12/2017 3:02:45 PM
I need to split the Date column up into Date & time and I want them to be in datetime format. I don't know how to do this with regex, since the lengths are different.
Output:
Transaction_id | Date | Date2 | Time
ABC 4/1/2016 9:13:58 PM 04/01/2016 21:13:58
CDE 10/3/2015 10:12:25 AM 10/03/2016 10:12:25
EFG 12/12/2017 3:02:45 PM 12/12/2017 15:02:45