I am receiving twitter messages that are sent at a certain date in the following format from twitter:
Tue Mar 29 08:11:25 +0000 2011
I want
A little bit old but using parse really help me with this issue
from datetime import datetime from dateutil.parser import parse date = 'Fri May 10 00:44:04 +0000 2019' dt = parse(date) print(dt) # 2019-05-10 00:44:04+00:00