I am new to this product (Aspose.iCalendar v22.214.171.124) but I get the gist of it. I have my rules and patterns saving appropriately, but when I try to use the GenerateOccurrences method I come up with a count of 0 dates each time.
Here is a sample pattern I am using
Not sure what I am doing wrong here. I want this rule to start on April 18th and finish on June 23rd. It should run only on weekdays at 14:32. When I use the following code I get zero dates returned:
private DateTime GetNextExecuteDate(string pattern)
RecurrencePattern pat = new RecurrencePattern(pattern);
DateCollection dates = pat.GenerateOccurrences();
return (dates.Count > 0?dates:DateTime.Parse("1/1/1970")); // assume jan 1 1970 is null date