date.now format js code example
Example 1: js date now format
new Date().toJSON()
// "2021-01-12T01:06:54.747Z"
Example 2: Javascript format date / time
var date = new Date('2014-8-20');
console.log((date.getMonth()+1) + '/' + date.getDate() + '/' + date.getFullYear());