Phương thức setUTCDate() thiết lập ngày trong tháng (1-31) cho Date theo UTC.
Tham số:
- dayValue – Số nguyên 1-31.
Ví dụ
<html>
<head>
<title>JavaScript setUTCDate Method</title>
</head>
<body>
<script>
var dt = new Date("Oct 15, 2017 23:30:00");
dt.setUTCDate(20);
document.write(dt);
</script>
</body>
</html>