I have the following string in Python - 'Oct 01 2013 07 30 PM EST'. I'm trying to convert to a datetime object but am getting the following error:
ValueError: time data 'Oct 01 2013 07 30 PM EST' does not match format
'%b %d %Y %I %M %p %Z'
Not sure where I am going wrong! Please help. My code is below:
from datetime import datetime
date_object = datetime.strptime(str(date), '%b %d %Y %I %M %p %Z')