date().isoDateTime code example
Example 1: get iso date javascript
var isoDate = new Date().toISOString()
Example 2: js toisostring
new Date().toISOString().slice(0, 16).replace('T', ' ')
// "2020-11-28 00:40"
var isoDate = new Date().toISOString()
new Date().toISOString().slice(0, 16).replace('T', ' ')
// "2020-11-28 00:40"