add to iCal and google-calendar buttons to a page

Jonathan picture Jonathan · Sep 2, 2011 · Viewed 28.5k times · Source

There are some webpages that have a add to iCal and add to Google Calendar buttons that when you click, it somehow adds an event to your calendar, would it be iCal or google Calendar.

I need to do that in a webpage, but can't seem to find the documentation about it.

Answer

balexandre picture balexandre · Sep 2, 2011

Normally it's a simple button with a ics file of the event. You can construct your own ics file following the iCalendar protocol or use an existing library, for example, in the .NET programming language, the DDay.iCal is a marvelous tool.

If you want just to manually generate a button with the Google Calendar button, Google has it's own generator for it:

http://www.google.com/googlecalendar/event_publisher_guide.html