Ad

Develop a JavaScript to display today's date.

Hello friends, today we will see you in this blog you'll learn how to create Develop a JavaScript to display today's date codes for website| HTML JavaScript Website Tutorials indicoderz .Earlier I have shared a blog on how to create a Develop a JavaScript to display today's date. codes for website| HTML JavaScript Website Tutorials indicoderz Generally. 




<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Current Time</title>
</head>
<body>
 Current Time: <span id="txt"></span>
 <script>
  var today = new Date();
  var h = today.getHours();
  var m = today.getMinutes();
  var s = today.getSeconds();
  document.getElementById('txt').innerHTML = h + ":" + m + ":" + s;
 </script>
</body>
</html>



Post a Comment

Previous Post Next Post