Create Python DateTime UTC ISO-Format Strings

# Works for >= Python 3.11 from datetime import datetime, UTC datetime.now(tz=UTC).isoformat() # > &apos;2024-11-13T08:06:11.736487+00:00&apos; # Use it in JavaScript: new Date(&apos;2024-11-13T08:06:11.736487+00:00&apos;)