get iso date javascript

JavaScript
var isoDate = new Date().toISOString()
Source

Also in JavaScript: