How to Create Ical File Update Cancel Ical with Example to Work on Outlook, Google Calendar and Mac Icalendar
Ical PHP

How to Create Ical File 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, and Thunder Bird Calendar with Lightning plugin.

How to Create Ical File

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

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

Ical Create File Example

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

To Update Event on Outlook use below Code :

Ical Update File Example

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

Ical Cancel File Example

Below you can check Ical Delete/Cancel Ical Example file.

To Delete Event from Outlook and Ical Mac:

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