Trying to parse time from string, but get this error. Tried few formatting string.
Error:
time data '10/2/2010 0:00:00' does not match format '"%m/%d/%Y %H:%M:%S"'
code:
strdt = '10/2/2010 0:00:00'
dt = datetime.strptime(strdt, '"%m/%d/%Y %H:%M:%S"')