get today date - js code example
Example 1: return current date in javascript
let today = new Date().toLocaleDateString()
console.log(today)
Example 2: current time in javascript
new Date().toLocaleString();
>> "09/08/2014, 2:35:56 AM"
let today = new Date().toLocaleDateString()
console.log(today)
new Date().toLocaleString();
>> "09/08/2014, 2:35:56 AM"