<html lang="en">
<head>
<meta charset="utf-8">
<title>Javascript Setting the Hours, Minutes and Seconds</title>
</head>
<body>
<script>
var d = new Date(2022, 7, 15); // Aug 15, 2022 00:00:00
d.setHours(8);
d.setMinutes(30);
d.setSeconds(45);
d.setMilliseconds(600);
document.write(d);
</script>
</body>
</html>