Today in Wikipedia shows you the Wikipedia entry for today’s date

A new site I made, Today in Wikipedia, takes you to the current date’s Wikipedia entry.

Each day’s entry is a list of links to Wikipedia articles about interesting events that happened on that day as well as notable births and deaths.

If you’re looking for a new home page, or just another site to add to your daily reading, check it out.

You can try it out here:

Today in Wikipedia

To set it as your home page:

Firefox:

Internet Explorer:

To bookmark it (if you don’t want it as your home page):

How it works

I made Today in Wikipedia using a simple bit of Javascript to retrieve the current date, create a URL based on that date and redirect you to it.

It works because the date is in the Wikipedia article URL. Example:

http://en.wikipedia.org/wiki/June_1

Here is the relevant code:


today = new Date();

day = today.getDate();

month = today.getMonth();

if (month==0) x=("January");
 else if (month==1) x=("February");
 else if (month==2) x=("March");
 else if (month==3) x=("April");
 else if (month==4) x=("May");
 else if (month==5) x=("June");
 else if (month==6) x=("July");
 else if (month==7) x=("August");
 else if (month==8) x=("September");
 else if (month==9) x=("October");
 else if (month==10) x=("November");
 else x=("December");

window.location = "http://www.wikipedia.org/wiki/" + x + "_" + day;

That’s all there is to it. If you have any questions, please leave a comment or contact me!

E-mail, print or share this post:
  • email
  • Print
  • Twitter
  • Facebook
  • StumbleUpon
  • Tumblr

Leave a Reply