0

I have been using the following directive to decode this string.

datetime.strptime('2021-07-09T21:01:49.926811Z', '%Y-%m-%dT%H:%M:%S.%f%Z')

But I get this error message:

ValueError: time data '2021-07-09T21:01:49.926811Z' does not match format '%Y-%m-%dT%H:%M:%S.%f%Z'

What is the right format ?

FObersteiner
  • 22,500
  • 8
  • 42
  • 72
Roland
  • 11
  • 3

0 Answers0