Answers for "how to get data of the current date in javascript"

17

return current date in javascript

let today = new Date().toLocaleDateString()

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

get date in javascript

function getTodayDate() {
    let d = new Date();
    return d;
}

console.log(getTodayDate());

//2020-12-06T09:53:14.105Z
Posted by: Guest on December-06-2020

Code answers related to "how to get data of the current date in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language