icalendarrfc5545rfc2445

How to get list of occurrence dates from iCalendar RRULE


I have the iCalendar file with RRULE for occurrences. How to get the list of dates on which the event will be occurring as per given start date and RRULE in the iCal file.

In Java, I want to write a method which should take start date and RRULE and return me the list of occurrence dates. Please help with simple solution or directions.


Solution

  • There is a Java library specifically for parsing RRULEs called google-rfc-2445.

    The following link contains an example using the library where you supply a start date along with an RRULE and it prints out the dates.

    http://google-rfc-2445.googlecode.com/svn/trunk/README.html