运行 ❯
获取您
的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Dates</h1> <h2>The getUTCDate() Method</h2> <p>getUTCDate() returns the day of the month of a date, according to UTC:</p> <p id="demo"></p> <script> const d = new Date("July 21, 1983 01:15:00"); let day = d.getUTCDate(); document.getElementById("demo").innerHTML = day; </script> </body> </html>