EWSoftware / PDI

A Personal Data Interchange (PDI) library that implements the vCard (RFC 2426), vCalendar, and iCalendar (RFC 2445) specifications including recurrence pattern generation
Microsoft Public License
64 stars 26 forks source link

Get next recurrence from collection of RDATES (Question not issue) #2

Closed poweredbyporkers closed 8 years ago

poweredbyporkers commented 8 years ago

Hi,

I'm being a little thick this morning so forgive it dumb question but ....

Given a string like FREQ=MINUTELY; INTERVAL=2 I can create an Recurrence object and get the instances so all good.

Given a string like

BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART:20151231T220000Z
UID:A6EAAB94-EEF8-445F-B9C5-74B828FB61EF
CREATED:20160212T004014Z
LAST-MODIFIED:20160212T004029Z
DTSTAMP:20160212T004134Z
RDATE:20160211T130000Z
RDATE:20160315T224016Z
END:VEVENT
END:VCALENDAR

How can I get the same information? I can get calendar object using VCalendarParser and the event object using VEvent from the calendar object but then my brain stops.

Thanks!

poweredbyporkers commented 8 years ago

I then as soon as I post I find the solution, ignore