simple get time and date in javascript code example
Example: Get data and time in javascript
var date_time = new Date().toLocaleString();
console.log(date_time);
var date_time = new Date().toLocaleString();
console.log(date_time);