Open this example in the interactive library
Source code
console.log(new Date("2026-10-22T12:30:00Z").toISOString());
Sample output
2026-10-22T12:30:00.000Z

Format an ISO timestamp. A self-contained example using the JavaScript runtime.
Open this example in the interactive library
console.log(new Date("2026-10-22T12:30:00Z").toISOString());
2026-10-22T12:30:00.000Z