Javascript has a Date object, so to get the date you simply do something along the lines of this: –

var d = new Date();
console.log(d.toString());

 

 


Discover more from

Subscribe to get the latest posts sent to your email.

Leave a comment

Trending