I have strings like this Wed Mar 18 19:24:07 +0000 2020
I guess it should be ,,,
%a %b %d %X %z %Y
However , how can I put this in python datetime class??
You may use datetime.strptime()
and the codes from here :
value = "Wed Mar 18 19:24:07 +0000 2020"
d = datetime.strptime(value, "%a %b %d %H:%M:%S %z %Y")
print(d) # 2020-03-18 19:24:07+00:00