get current Y-m-d H:i in javascript code example
Example 1: return current date in javascript
let today = new Date().toLocaleDateString()
console.log(today)
Example 2: get today's date javascript
var today = new Date();
let today = new Date().toLocaleDateString()
console.log(today)
var today = new Date();