Free Support Forum - aspose.com

Getting 0 occurrences

Hi, i'm wondering why i'm getting 0 occurences to the following codes:

DateTime StartDate = new DateTime(2007, 9, 28, 14, 0, 0);

string ScheduledPattern = "DTSTART:20070928T140000\r\nRRULE:FREQ=MINUTELY;COUNT=448;INTERVAL=60";

DateCollection nextDates = new RecurrencePattern(ScheduledPattern).GenerateOccurrences(

StartDate,

StartDate + new TimeSpan(2, 0, 0, 0));

Thanks,

Kenneth

Hi,

You use Aspose.iCalendar in evaluation mode.
If you do not specify a license, then Aspose.iCalendar will work in evaluation mode and limit occurrence dates generated to 31/Dec/2004.

Try to use this rule:

DTSTART:20040928T140000
RRULE:FREQ=MINUTELY;COUNT=448;INTERVAL=60