I have to subtract two hours passed by the user in the format \'HH: MM\' and the result has to divide by the number of feeds on the day and set the exact hours that it should fe
If you prefer to use a library, you can use momentJS => https://momentjs.com/docs/
But I dont think you need to.
If you want to subtract two hours from a certain date you can do it like this /
var x = new Date(); x = Date.parse(x); x = x - 7200000; x = new Date(x); console.log(x);