<html>
<body>
<p id="demo">Click the button to display a date after changing the hours, minutes, and seconds.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var d = new Date();
d.setHours(15,35,1);
var x = document.getElementById("demo");
x.innerHTML=d;
}
</script>
</body>
</html>