how to subtract hours and minutes in javascript?
To subtract minutes to a JavaScript Date object, use the setMinutes() method. JavaScript date setMinutes() method sets the minutes for a specified date according to local time.