toISOString without T and Z code example
Example 1: get iso date javascript
var isoDate = new Date().toISOString()
Example 2: javascript toisostring without milliseconds
console.log( now.toISOString().split('.')[0]+"Z" );
var isoDate = new Date().toISOString()
console.log( now.toISOString().split('.')[0]+"Z" );