21 August 2013 by Web Bureau
We recently had to add a link button to a client site whereby users could click on it and download a vCalendar file to their Outlook Calendar.
Here is a code snippet of how we got this to work. One thing to bear in mind is setting the timezone and any daylight saving rules. Without these, the downloaded appointment file may have the wrong times by being out plus or minus one hour.
Our sample here uses GMT and British Summer Time