Minifycode 2020-03-07 Viewed 1.3K times Javascript

In this article, you will learn how to find JavaScript Date Reference

new Date() creates a new date object with the current date and time

<p id="divdemo"></p>

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


Sat Mar 07 2020 18:01:22 GMT+0530 (India Standard Time)

JavaScript Date Reference
minify code