Add year to a Date - Node.js Date

Node.js examples for Date:Year

Description

Add year to a Date

Demo Code

Date.prototype.addYear = function(count)
{
  this.setYear(this.getFullYear() + count);
};

Related Tutorials