<html>
<body>
<p>Click the button to display the date after setting the time to be 90 minutes ago.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var d = new Date();
d.setMinutes(d.getMinutes() - 90);
document.getElementById("demo").innerHTML=d;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_setminutes2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:28 GMT -->
</html>