Team:KULeuven/5 July 2008

From 2008.igem.org

(Difference between revisions)
Line 11: Line 11:
function url_ndate_retriever() {
function url_ndate_retriever() {
var url_tokens = location.href.split("/");
var url_tokens = location.href.split("/");
-
var url_date_token = url_tokens[url_tokens.length - 1];
+
var url_date_token = url_tokens[url_tokens.length-1];
var date_tokens = url_date_token.split("_");
var date_tokens = url_date_token.split("_");
Line 18: Line 18:
var year = date_tokens[2];
var year = date_tokens[2];
// ndate stands for numeric date, it is the date represented in milliseconds, it is not of type Date!
// ndate stands for numeric date, it is the date represented in milliseconds, it is not of type Date!
-
return new Date(Date.parse(day + ' ' + month + ', ' + year));
+
return Date.parse(day + ' ' + month + ', ' + year);
}
}

Revision as of 20:09, 15 July 2008

< return to notebook

Momentarily using for test environment...