>>> from dateutil.parser import isoparse >>> isoparse('2021-02-14T02:27:57.96119078Z') datetime.datetime(2021, 2, 14, 2, 27, 57, 961190, tzinfo=tzutc())