Can't convert a string into a DateTime object in Python3.8.5.
>>> from datetime import datetime
>>> x = "2020-06-27T16:03:00+0000"
Variations of formats I have tried after referencing:
'%Y-%m-%dT%H:%M:%S.000%z'
'%Y-%m-%dT%H:%M:%S.f%z'
'%Y-%m-%dT%H:%M:%S+%z'
I tried a bunch of other combinations that did not make a lot of sense. I need the Zulu time added as my code deals with sorting a bunch of events from international tracking.
Everything I've seen has been about Python2.7 having issues with Zulu time formats.
SOLVED:
Zulu time includes the +
and the -
therefore
'%Y-%m-%dT%H:%M:%S%z'
is the correct format. Will answer when I can for a brief answer for others