<html>
<body>
<h1>JavaScript Dates</h1>
<h2>The getUTCDay() Method</h2>
<p>getUTCDay() returns the day of the week (from 0 to 6), according to UTC:</p>
<p id="demo"></p>
<script>
const d = new Date();
let day = d.getUTCDay();
document.getElementById("demo").innerHTML = day;
</script>
<p><strong>Note:</strong> 0=Sunday, 1=Monday, etc.</p>
</body>
</html>