js date get hours in 12 hours code example
Example 1: javascript get 7 days from now
var date = new Date();
date.setDate(date.getDate() - 13);
console.log(date);
Example 2: date add hours javascript
Date.prototype.addHours = function(h) {
this.setTime(this.getTime() + (h*60*60*1000));
return this;
}