I am trying to convert the time below which i believe is ISO 8601 timestamp but i can't seem to convert.
time = '2021-04-06T23:51:50.514Z'
datetime.datetime.strptime(time, '%Y-%m-%dT%H:%M:%SZ')
I get the error
ValueError: time data '2021-04-06T23:51:50.514Z' does not match format '%Y-%m-%dT%H:%M:%SZ'