Answers for "get today date - js"

17

return current date in javascript

let today = new Date().toLocaleDateString()

console.log(today)
Posted by: Guest on March-01-2020
0

current time in javascript

new Date().toLocaleString();

>> "09/08/2014, 2:35:56 AM"
Posted by: Guest on December-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language