Team:KULeuven/Tools/New Day/Date Retriever

From 2008.igem.org

(Difference between revisions)
m
m
Line 18: Line 18:
// Retrieve seperate date components
// Retrieve seperate date components
var dateTokens = wikiFirst.split("_");
var dateTokens = wikiFirst.split("_");
-
alert(dateTokens[1]);
 
var day = parseInt(dateTokens[0]);
var day = parseInt(dateTokens[0]);
Line 25: Line 24:
if(dateTokens[1] == monthNames[x]) {month = x + 1; break;}
if(dateTokens[1] == monthNames[x]) {month = x + 1; break;}
}
}
 +
alert(month);
var year = parseInt(dateTokens[2]);
var year = parseInt(dateTokens[2]);

Revision as of 09:56, 31 July 2008

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