运行 ❯
创建您
自己
的网站
×
更改方向
保存代码
更改主题,暗/亮
前往 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>