Display current date and time in html using java script

Display Current date and time using Javascript

Hello friends in this article we will learn JavaScript Date Objectst / How to diplay date/ time using javascript .


<p id="datetime"></p>


var dt = new Date();
document.getElementById("datetime").innerHTML = dt;

Leave a Reply

Your email address will not be published. Required fields are marked *