Answers for "get date/time value js"

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
1

get date in javascript

document.write(new Date().getFullYear());
Posted by: Guest on November-09-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language