Team:KULeuven/Tools/New Day/Date Retriever

From 2008.igem.org

(Difference between revisions)
m
m
Line 20: Line 20:
var day = parseInt(dateTokens[0]);
var day = parseInt(dateTokens[0]);
-
var month;
+
var month = 1;
for (x in monthNames) {
for (x in monthNames) {
-
if(dateTokens[1] == monthNames[x]) month = x + 1;
+
alert(month);
 +
if(dateTokens[1] == monthNames[x]) {month = x + 1;}
}
}
var year = parseInt(dateTokens[2]);
var year = parseInt(dateTokens[2]);

Revision as of 09:48, 31 July 2008

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