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> <h2>JavaScript Dates</h2> <p>Date.UTC() returns the number of milliseconds between a date and January 1, 1970, according to UTC.</p> <p>Create a date object using UTC time instead of local time:</p> <p id="demo"></p> <script> const d = new Date(Date.UTC(2020, 02, 30)); document.getElementById("demo").innerHTML = d; </script> </body> </html>