tags:

views:

270

answers:

2

Can I export multiple calendar events into a single iCalendar file?

A: 

You simply make an iCalendar file with multiple VEVENT sections. For example:

BEGIN:VCALENDAR
BEGIN:VEVENT
DESCRIPTION:
DTEND:20071202T220000Z
DTSTAMP:20081124T220920Z
DTSTART:20071202T200000Z
LOCATION:Wherever
STATUS:CONFIRMED
SUMMARY:An event
UID:event-the-first
END:VEVENT
BEGIN:VEVENT
DESCRIPTION:Doing whatever, because for no good reason.
DTEND:20071209T210000Z
DTSTAMP:20081124T220920Z
DTSTART:20071207T190000Z
LOCATION:A specific place
STATUS:CONFIRMED
SUMMARY:Something, somewhere
UID:event-the-second
END:VEVENT
END:VCALENDAR
Paul Fisher
A: 

Just a note, you need to escape the "," and ";" on strings. Also strlength should be < 75 chars. \r\n should be followed by a white space.

Bellyboy