JS - Show current date with new Date()

0 votes
179 views
added Mar 13, 2019 in Javascript by LC Marshal Captain (25,790 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.
...