Javascript Date.now to readable format

var date = new Date();
console.log(date.toLocaleDateString());
console.log(date.toDateString());
console.log(date.toLocaleString());
console.log(date.toUTCString());
console.log(date.toISOString());

Choose your method from here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)