That is very similar to this tutorial. The same type of method is used.
Thu Oct 24 2018 16:14:03 GMT+0530 (India Standard Time)
In the above line, you have to put the hours in numeric in order to add hours to the current hour. ( put how many hours you want to add instead of hours_to_be_added )
var date1 = new Date();
In the Date() you can pass any date as a parameter. If you want to leave it system date just don’t pass anything.