Javascript Date addYears( years )

Description

Javascript Date addYears( years )

Date.prototype.addYears = function ( years ) {
  this.setFullYear( this.getFullYear() + years );
}



PreviousNext

Related