Team:KULeuven/Tools/New Day/Date Retriever

From 2008.igem.org

(Difference between revisions)
m
m
Line 19: Line 19:
var dateTokens = wikiFirst.split("_");
var dateTokens = wikiFirst.split("_");
-
var day = dateTokens[0];
+
var day = parseInt(dateTokens[0]);
-
var month = dateTokens[1];
+
var month = parseInt(dateTokens[1]);
-
var year = dateTokens[2];
+
var year = parseInt(dateTokens[2]);
// Construct a Date object and return the result
// Construct a Date object and return the result

Revision as of 09:34, 31 July 2008

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