Add hours to a Date - Node.js Date

Node.js examples for Date:Hour

Description

Add hours to a Date

Demo Code

Date.prototype.addHours = function(count)
{
  this.setHours(this.getHours() + count);
};

Related Tutorials