Open ChrisAmstutz opened 5 years ago
my output is only showing the original events, not the generated occurances
@ChrisAmstutz Serializing the Calendar to a string is doing exactly what is intended. The serialization is including your RRULE value. It's the iCal consumer's responsibility to "calculate" and spit out the occurrences one-by-one. Serializing the calendar to the iCal spec isn't going to add every single instance of the event - that would defeat the point of specifying it in an RRULE (thus saving space!).
What you're probably looking for is to either: a) Call iCal.GetOccurrences() which will return all occurrences of all events added to the calendar. b) call evt.GetOccurences() which will return all the occurrences of just that specific event in your loop.
You can then take the resulting list of whichever one of those calls you decide to implement, and store the data where you wish.
Look at Issue #456 , which describes the differences with a lovely example.
Hello, I realize this is a very amateur-ish question but I'm attempting to implement Ical into a side project im making, (im not a programmer I'm just playing around on the side) I store all my needed information on a table, I'd like to generate all instances within a month and have them inputted into a table (this is how my makeshift calendar reads and can display the events). Additionally if it wasn't complicated enough I'm using VB.Net..
My question is how do I get from ical.getoccurance to a table of the events being reoccurred
Thanks a lot for your help and im sorry if this is confusing I'm still very much learning all of this
This is my Code: 'Here I am fillling my table
Dim StartDate As DateTime = New Date(currentDate.Year, currentDate.Month, 1) Dim EndDate As DateTime = StartDate.AddMonths(1).AddDays(-1)
Thanks again