Steps to create an icalendar.
Create an HTMLobject which contains icalendar script. The icalendar file (extension: .ics) is accepted most of the calendar programs like outlook etc. It helps us to send the schedules/appointments/meetings/anniversaries etc.
The icalendar script is placed in an HTML object.
After that create an iscript which uses the HTML object to render icalendar functionality.
Below are the snapshots.
Below is the ics file output in outlook.