Why does the following JS date string fail? It's passed from a JS Date object to a Python backend.
2021-12-31T05:00:00.000Z
mydate = datetime.fromisoformat(form['expirationDate'])
Error:
ValueError: Invalid isoformat string: '2021-12-31T05:00:00.000Z'