I am learning biweekly recently, will use it in my application.
It has spent my some time to find a solution about getting events by a specific date(or time). for example:
I define a calendar with recurrenced event below, how can I check if I have this event tomorrow or not by programming ?
ICalendar iCalendar = new ICalendar();
VEvent vEvent = new VEvent();
vEvent.setDateStart(new Date());
Recurrence recurrence = new Recurrence.Builder(Recurrence.Frequency.DAILY).interval(1).byHour(3).byMinute(0).bySecond(0).build();
vEvent.setRecurrenceRule(recurrence);
iCalendar.addEvent(vEvent);
Thank you very much!
Bruce
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "Help and Support" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hello
I am learning biweekly recently, will use it in my application.
It has spent my some time to find a solution about getting events by a specific date(or time). for example:
I define a calendar with recurrenced event below, how can I check if I have this event tomorrow or not by programming ?
Thank you very much!
Bruce
Hi Bruce,
You can use the
RecurrenceRule.getDateIterator()
method to get all of the dates in a recurrence rule.