new date in javascript to dd mm yyyy code example
Example 1: js date now format
new Date().toJSON()
// "2021-01-12T01:06:54.747Z"
Example 2: javascript date format mm/dd/yyyy
var date_format = new Date();
document.write(innerHTML = date_format.getMonth()+'/'+ date_format.getDate()+'/'+date_format.getFullYear());