I want to add hours in DateTime. I have googled it but couldn't find any code.
Here is this datetime 2018-07-25 20:23:22
. I want to add hours in this datetime so it gives me new datetime in the same format
I have tried this.
var datetime = "2018-07-25 20:23:22";
datetime.setHours(datetime.getHours()+5);
But It didn't work.