i get from the api following string for date and time
t = "2015-02-06T10:11:02.900Z"
I need only the date in this format: DD.MM.YYYY This is what i tried:
from datetime import datetime
datetime.strptime(t, "%Y-%m-%dT%H:%M:%S.%f%z")
And this is the error i get:
ValueError: time data '2015-02-06T10:11:02.900Z' does not match format '%Y-%m-%dT%H:%M:%S.%f%z'