Menu

Testing current date/time

Anonymous
2015-08-03
2015-08-15
  • Anonymous

    Anonymous - 2015-08-03

    I'm trying to use biweekly to determine if the current date/time lies within an event on an ical calendar. I'm having trouble pulling this off, how should I be doing it?

    Thanks

     
  • Michael Angstadt

    Hello,

    I assume your event has an RRULE. You can use the getDateIterator() method to iterator over each of the dates in an event:

    :::java
    ICalendar ical = ...
    VEvent event = ical.getEvents().get(0);
    RecurrenceRule rrule = event.getRecurrenceRule();
    DateIterator it = rrule.getDateIterator(event.getDateStart().getValue());
    
     

Anonymous
Anonymous

Add attachments
Cancel