If I run...
moment().format();
I get back 2022-05-25T16:47:05-04:00
But if I use the native browser Date API toISOString()
it's not quite the same as Moment...
new Date(Date.now()).toISOString()
This comes back as 2022-05-25T20:47:05.698Z
How can I get the Date API to return the ISO string in the same format that moment defaults to? The documentation for both says it uses ISO 1806, but yet they are slightly different.