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.

Ical Events Files for Create Event, Update Event and Cancel event.
To Create Event on Outlook or Mac Icalendar see below code:

 

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
UID:vicky@tutorialsbag.com
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 :

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
UID:vicky@tutorialsbag.com
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


To Delete Event from Outlook and Ical Mac:

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:CANCEL
BEGIN:VEVENT
UID:vicky@tutorialsbag.com
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