>>> datetime.datetime.strptime("2008-09-03T20:56:35.450686Z", "%Y-%m-%dT%H:%M:%S.%fZ")
import datetime d = datetime.today() print(d.isoformat()) # returns '2022-09-24'