Javascript Date addSeconds(seconds)
Date.prototype.addSeconds = function(seconds) { this.setSeconds(this.getSeconds() + seconds); return this;/*w w w.j a va 2 s . c om*/ }; Date.prototype.isValidDate = function() { return !isNaN(this); };