I am getting this String:
a = "Wed Mar 06 2019 17:35:33 GMT-0500 (Ecuador Time)"
and i am trying to parse it in python with this code:
fecha = datetime.strptime(a , '%a %b %d %Y %H:%M:%S GMT%z (%Z)')
But i am getting an error
ValueError: time data 'Wed Mar 06 2019 17:35:33 GMT-0500 (Ecuador Time)' does not match format '%a %b %d %Y %H:%M:%S GMT%z (%Z)'
what am i doing wrong? i've try a lot of settings for the date but still can get a solution my goal is to get a date object and save it into a MongoDatabase