Phương thức getUTCDay() trả về ngày trong tuần (0-6) của Date theo UTC: 0=Chủ nhật, 1=Thứ 2, ..., 6=Thứ 7.
Ví dụ
<html>
<head>
<title>JavaScript getUTCDay Method</title>
</head>
<body>
<script>
var dt = new Date("January 15, 2018 20:15:20");
document.write("getUTCDay(): " + dt.getUTCDay());
</script>
</body>
</html>