Javascript Date addMinutes(m)

Description

Javascript Date addMinutes(m)


Date.prototype.addMinutes = function(m) {    
   this.setTime(this.getTime() + (m*60*1000)); 
   return this;   
}

Javascript Date addMinutes(m)

Date.prototype.addMinutes= function(m){
    this.setMinutes(this.getMinutes()+m);
    return this;/* w  w  w .  ja v a  2 s . com*/
}



PreviousNext

Related