Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Dates</h1> <h2>The new Date() Method</h2> <p>JavaScript stores dates as milliseconds from Jan 1, 1970.</p> <p>100000000000 milliseconds from Jan 1, 1970, is approximately Mar 3, 1973:</p> <p id="demo"></p> <script> const time = new Date(100000000000); document.getElementById("demo").innerHTML = time; </script> </body> </html>