Javascript Date subtractDays(h)

Description

Javascript Date subtractDays(h)

Date.prototype.subtractDays = function(h) {
   this.setTime(this.getTime() - (h*24*60*60*1000));
   return this;//from  w w  w .ja v a 2s. c om
};



PreviousNext

Related