Add seconds to a Date - Node.js Date

Node.js examples for Date:Second

Description

Add seconds to a Date

Demo Code

Date.prototype.addSeconds = function(count)
{
  this.setSeconds(this.getSeconds() + count);
};

Related Tutorials