In python, I am using the command start = datetime.datetime.strptime(a, '%Y-%m-%d %H:%M:%S') and in Excel I have the date and time as 11/11/2005 12:00:00 AM. When I try to run the code, it is telling me that the time in excel does not match the code. How do I fix this?

%His for a 24-hour clock and you are passing with an AM/PM. Change to''%Y-%m-%d %I:%M:%S %p'.%Ihandles the 12-hour clock and%phandles the AM/PM.