Javascript Date addYear()

Description

Javascript Date addYear()


Date.prototype.addYear = function(){
 this.setFullYear(this.getFullYear() + 1);
};



PreviousNext

Related