Google Calendar Week Numbers

You might want to be able to view week numbers in Google Calendar, but Google hasn't released such a feature yet. Maybe you've used the ISO8601 calendar, or even made your own week numbers, but in my opinion using a day event to display the week number is kinda ugly.

Google has released a new feature since Google Calendar was created; Web Content Events. It gives Google Calendar the possibility to display events in the title bar of each day as small icons. I found out that you can only add these kind of entries by either uploading an iCal file or using the Google Calendar API, which only technically inclined people know how to do.

To get to the action; I've created a Google Calendar which displays the week numbers in the title bar of the first week day, which is far better than any alternative I've tried. The best thing is that you can use my week numbers by simply subscribing to my calendar. You can see a live preview on the right.

You can add the week numbers to your calendar simply by using this box:
 
I also recommend that you go to Google's help center where you can vote for features that Google should implement, and week numbers are in that list. There are some other interesting features to vote for as well, so check it out!

If the box above didn't work, you can try these links:
Pretty neat huh? I hope you will enjoy the week numbers as much as I have. Google have recently released week numbers on their own, but they can be hard to find. You can read about it below.

Feel free to send feedback, or just email to tell me how much you needed this. If you're feeling really grateful, send me a postcard (maybe with an image of your hometown) to: Stefan Sundin, Vänortsvägen 9, 97754 LULEÅ, Sweden.

Ensuring correctness

Due to the fact that countries number weeks a little differently, I encourage you to verify that my week numbers are correct in your country. Pick up a local calendar and make sure the week numbers match.
Note that traditional paper calendars often make mistakes with week 53, where they usually label it as week 1. But if you look at the calendar for the next year, the error should have been fixed.

Customizing the week numbers

I can not help you customize the week numbers. I have received countless requests to put the week numbers in some other manner, but I simply do not have time to meet every request. All the information you need to create your own calendar is on this page and on the Google Calendar documentation, so do not email me about this!

Week numbers from Google

Google have finally gotten their act together and have added a pretty easy way to add official week numbers, if you know where to look. You have to go to a place called "Interesting Calendars." To get there, press "Add" in the small calendar to the left, then press "Browse Interesting Calendars," then go to the tab called "More" and subscribe to the calendar called "Week Numbers." In my test it appears that it adds the same calendar, no matter what language you use, and the week numbers are always displayed on Mondays. Google's week numbers look like this: .

I will continue to maintain my week numbers as long as people use them. And to be honest, I like my icons better. ;)

Adding the week numbers manually

If you are unable to add the calendar using the box or the links above, you can add the calendar from within Google Calendar. This does also work in Google Apps. Use the "Add a friend's calendar" feature to add this address:
  • For Mondays: g0k1sv1gsdief8q28kvek83ps4@group.calendar.google.com
  • For Sundays: d8u7iiljjpfibev3cd8emgau78@group.calendar.google.com
It looks like Google removed the public calendar search, but if they ever re-add it, the search query [week numbers web content event] should find my week numbers.

Google Apps users

If the box above didn't work, then you will have to manually add the week numbers from within Google Calendar. Simply follow the instructions above. Another option is to use a link to add the calendar, like this:

  • For Mondays: http://www.google.com/calendar/hosted/example.com/render?cid=g0k1sv1gsdief8q28kvek83ps4@group.calendar.google.com
  • For Sundays: http://www.google.com/calendar/hosted/example.com/render?cid=d8u7iiljjpfibev3cd8emgau78@group.calendar.google.com

Just remember to replace example.com with your domain!

Google Calendar Gadget

I have made a Google Calendar gadget that you can use to add the week numbers. It doesn't have a lot of features except that yet. You can add the gadget by following this link. If the link doesn't work, use the lab feature "Add gadget by URL" and add "http://sites.google.com/site/gcalweeknumbers/Home/calendar-gadget.xml".

If you have a great idea for the gadget, let me know!

Updates

  • 2009-11-25
    Note that I can not help you customize the week numbers. I have received so many requests and I do not have time to help everyone! All the help you need is on this page and in the documentation that Google provides. Please do not email me about this.
    Posted ‎‎Nov 25, 2009 4:00 AM‎‎ by Stefan Sundin
  • 2009-11-09
    I have just updated the icons to a new set of icons submitted by Marco Baumgarten. These new icons look a lot better on backgrounds other than white, like when using the Firefox addon Google Redesigned. We are planning to release a new calendar with a new set of icons as well. Send any feedback to me.
    I have also noticed that it is now very easy to add Google's week numbers. Read the section above.
    Posted ‎‎Nov 9, 2009 10:37 AM‎‎ by Stefan Sundin
  • 2009-09-04
    I have just made a gadget for Google Calendar. Read the section above for more info.
    Posted ‎‎Oct 10, 2009 12:48 PM‎‎ by Stefan Sundin
Showing posts 1 - 3 of 3. View more »
How I made it

I thought about this for a while, without really doing anything. When I finally got to it, I checked the Google Calendar documentation for information on how I could add Web Content Events. The iCal solution looked pretty simple, so I decided to try that first.

I created a test iCal file with one entry, which worked. After a few tries I finally got a format I liked, and made a quick php-script to generate events for an entire year. Each week has a 16×16 image associated with it which is displayed in the title bar.

I then uploaded all the week number images to Google Sites, generated iCal files to supply weeks from January 2006 to December 2013, and uploaded them to a new shared calendar, which you can use with a click of a button. A lot of work by me, a very easy solution for you. ;)

You can download all the files I have used doing this calendar here, which includes the iCal files, the icon files, the php-script and a psd file. If you want, you can grab some files individually as well.

If you are going to do something similar you should read up on weeks, it's not as simple as you might think, e.g., do you know when a year has 53 weeks instead of 52? Wikipedia has a pretty good explanation.

About me

My name is Stefan Sundin. I have a website over at stefansundin.com where you might find some interesting stuff.