Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Dates</h2>
<p>setUTCHours() method sets the hour (according to UTC) of a date object:</p>
<p id="demo"></p>
<script>
const d = new Date();
d.setUTCHours(15);
document.getElementById("demo").innerHTML = d;
</script>
</body>
</html>