Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Dates</h2>
<p>The internal clock in JavaScript starts at midnight January 1, 1970.</p>
<p>Date.now() returns the number of milliseconds since January 1, 1970 00:00:00 UTC:</p>
<p id="demo"></p>
<script>
let ms = Date.now();
document.getElementById("demo").innerHTML = ms;
</script>
</body>
</html>