Team:KULeuven/Tools/New Day/Date Retriever

From 2008.igem.org

(Difference between revisions)
m
m
Line 42: Line 42:
function dateFuture(ndays) {
function dateFuture(ndays) {
var futureDate = new Date();
var futureDate = new Date();
-
alert(ndays);
+
futureDate.setDate(pageDate().getDate());
-
alert(pageDate().toGMTString());
+
futureDate.setDate(futureDate.getDate() + ndays);
-
futureDate.setDate(pageDate().getDate() + ndays);
+
-
alert(futureDate.toGMTString());
+
return futureDate;
return futureDate;
}
}

Revision as of 17:16, 1 August 2008

<< return to notebook return to homepage >>
< previous friday ← yesterday tomorrow → next monday >