Using Date Object to Get Current Date and Time in Javascript


Work with dates and times using the Date object.

Source Code

let now = new Date();
console.log(now.toString()); // Displays current date and time
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments