As per the bug fix list for the latest version of the Aspose.Email DLL,
EMAILNET-34790 Task start date preferred over monthly recurrence Day value
This does not appear to be the case. An example would be to setup a recurring appointment to repeat the first Monday of every month starting on 7/2/2015. The retuned dates from the GenerateOccurrences method are “7/2/2015” and “7/6/2015”. The first date does not correspond to a Monday and therefore should not be returned in the result set.
Here is the sample code:
Dim sPattern As String = “DTSTART;TZID=US-Eastern:20150702T143000Z” + Environment.NewLine +
“DTEND;TZID=US-Eastern:20150702T150000Z” + Environment.NewLine +
“RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=1MO;WKST=SU” + Environment.NewLine
Dim rStart As Date = CDate(“06/30/2015 14:30:00”)
Dim rEnd As Date = CDate(“08/02/2015 15:00:00”)
Dim license As Aspose.Email.License = New Aspose.Email.License()
license.SetLicense("Aspose.Email.lic")
Dim recur As New Aspose.iCalendar.RecurrencePattern(sPattern)
Dim recurDates As Aspose.iCalendar.DateCollection = recur.GenerateOccurrences(rStart, rEnd)