Team:KULeuven/Tools/New Day/Date Retriever
From 2008.igem.org
(Difference between revisions)
m |
m |
||
Line 36: | Line 36: | ||
var pastDate = new Date(); | var pastDate = new Date(); | ||
pastDate.setDate(pageDate().getDate() - ndays); | pastDate.setDate(pageDate().getDate() - ndays); | ||
- | |||
return pastDate; | return pastDate; | ||
} | } | ||
Line 92: | Line 91: | ||
URL += date.getDate(); | URL += date.getDate(); | ||
URL += '_'; | URL += '_'; | ||
+ | alert(date.getMonth()); | ||
URL += monthNames[date.getMonth() - 1]; | URL += monthNames[date.getMonth() - 1]; | ||
URL += '_'; | URL += '_'; |
Revision as of 16:54, 1 August 2008
<< return to notebook | return to homepage >> | ||
< previous friday | ← yesterday | tomorrow → | next monday > |