JS - Show current date with new Date()

0 votes
84 views
added Mar 13, 2019 in Javascript by LC Marshal Captain (25,770 points)
let now = new Date();
alert( now ); // shows current date/time

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...