0
The code creates a string which corresponds to the local time on the computer.
0 Comments
function myFunction() { var d = new Date(); var n = d.toLocaleString([], {hour: '2-digit', minute:'2-digit'}); document.getElementById("demo").innerHTML = n; }