public static JsDate addSeconds(this JsDate date, int seconds) { var date2 = new JsDate(date.valueOf()); date2.setSeconds(date2.getSeconds() + seconds); return(date2); }