>>> from datetime import datetime
>>> valid = "2024-05-15T21:43:07.900Z"
>>> datetime.strptime(valid, "%Y-%m-%dT%H:%M:%S.000Z")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/_strptime.py", line 555, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/_strptime.py", line 333, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '2024-05-15T21:43:07.900Z' does not match format '%Y-%m-%dT%H:%M:%S.000Z'
Before:
After: