Example Resulting value of x
var d = new Date(Date.now());
var x = new Date(d.setMilliseconds(1)).toISOString();
2025-07-24T01:28:48.001Z