Quote from MDN:
The toISOString() method returns a string in simplified extended ISO format (ISO 8601), which is always 24 or 27 characters long (YYYY-MM-DDTHH:mm:ss.sssZ or ±YYYYYY-MM-DDTHH:mm:ss.sssZ, respectively).
- When will the second format
±YYYYYY-MM-DDTHH:mm:ss.sssZ
be returned? - What means the
±YY
in the beginning of±YYYYYY-MM-DDTHH:mm:ss.sssZ
?