Javascript Date addHours(hours)

Description

Javascript Date addHours(hours)

Date.prototype.addHours = function(hours) {
    this.setHours(this.getHours() + hours);
    return this;/*from   w w  w  .jav a 2s  . com*/
}



PreviousNext

Related