Sorry, I cannot help you with database issues. However, I noticed something possibly wrong with the code sample you gave me.
It looks like you are trying to define an event that occurs daily. And you are defining the date that the recurrence ends by setting the event's date end property:
event.setDateEnd(df.parse("2013-07-15 11:00"));
Actually, you should set this on the recurrence property, like so
Recurrence recur = new Recurrence.Builder(Frequency.DAILY).until(df.parse("2013-07-15 11:00")).build();
And this date must come after the start date (it is 2 years behind)!
-Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi ,
I am quite new to using the icalendar , I got to know how to add and
create a recurrence object ,like
Duration.Builder().days(1).build()); //all-day event
Recurrence.Builder(Frequency.DAILY).build();
I need to know how do I save and retrieve the recurrence rule , in the
database .
Regards,
Jithesh chandra N.
Hi Jitesh,
Sorry, I cannot help you with database issues. However, I noticed something possibly wrong with the code sample you gave me.
It looks like you are trying to define an event that occurs daily. And you are defining the date that the recurrence ends by setting the event's date end property:
event.setDateEnd(df.parse("2013-07-15 11:00"));
Actually, you should set this on the recurrence property, like so
Recurrence recur = new Recurrence.Builder(Frequency.DAILY).until(df.parse("2013-07-15 11:00")).build();
And this date must come after the start date (it is 2 years behind)!
-Mike