How to Create Ical Files to Work on Outlook, Google Calendar and Mac Icalendar


To Create Ical files we need to follow some standards set by ietf.org.

Below are the working copies of the sample ical files created and these are tested on Outlook calendar, Google Calendar, Mac Icalendar ,Thunder Bird Calendar with Lightning plugin.

Create Ical Files

Ical Events Files for Create Event, Update Event and Cancel event.

To Create Event on Outlook or Mac Icalendar see below code:

Create Ical File Example

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
UID:vicky@techfolks.net
DTSTART:20130617T050000Z
DTEND:20130617T065900Z
DTSTAMP:20130616T050000Z
DESCRIPTION:The is a test invite for you to see how this thing actually works
LAST-MODIFIED:20130616T050000Z
LOCATION:Queens, New York
SUMMARY:Test Demo Invite
SEQUENCE:0
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR

To Update Event on Outlook use below Code :

Update Ical File Example

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
UID:vicky@techfolks.net
DTSTART:20130617T050000Z
DTEND:20130617T075900Z
DTSTAMP:20130616T050000Z
ORGANIZER;mailto:chvivek10@gmail.com
DESCRIPTION:The is a test invite for you to see how this thing actually works
LAST-MODIFIED:20130616T050000Z
LOCATION:Queens, New York
SUMMARY:Test Demo Invite
SEQUENCE:1
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR

Delete or Cancel Ical File Example

To Delete Event from Outlook and Ical Mac:

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:CANCEL
BEGIN:VEVENT
UID:vicky@techfolks.net
DTSTART:20130617T050000Z
DTEND:20130617T075900Z
DTSTAMP:20130616T050000Z
DESCRIPTION:The is a test invite for you to see how this thing actually works
LAST-MODIFIED:20130616T050000Z
LOCATION:Queens, New York
SUMMARY:Test Demo Invite
SEQUENCE:1
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR

Share me!