Hi there,
I've been trying to use the following rule without success:
RecurrenceRule = "FREQ=DAILY;INTERVAL=1;UNTIL=06/10/2018;";
StartTime = new DateTime(2018, 06, 01, 10,0,00)
EndTime = new DateTime(2018, 06, 01, 12, 00, 00)
Passing this along to my XAML RecurrenceMapping doesn't seem to work as it shows the appointment in the MonthView on many more dates into the future well past the set UNTIL date (10th of June 2018). The rule is thus not respected.
So, I approached this in a different way by using recurrence properties instead:
RecurrenceProperties recurrenceProperties = new RecurrenceProperties();
recurrenceProperties.RecurrenceType = RecurrenceType.Daily;
recurrenceProperties.DailyNDays = 1;
recurrenceProperties.IsRangeEndDate = true;
recurrenceProperties.RangeEndDate = new DateTime(2018, 06,10);
recurrenceProperties.RecurrenceRule = DependencyService.Get<IRecurrenceBuilder>()
.RRuleGenerator(recurrenceProperties, new DateTime(2018, 06, 01, 10,0,00)
,new DateTime(2018, 06, 01, 12, 00, 00));
However, now I get the following rule when checking recurrenceProperties.RecurrenceRule => "FREQ=DAILY;COUNT=6;BYDAY=MO,TU,WE,TH,FR"
Notice that the rule is not using UNTIL as expected and furthermore that the new generated rule seems incorrect as it excludes Saturday and Sunday and the count is wrong.
In the monthview I can now only see 6 entries which is wrong.
Could you check and let me know whats going wrong?
Kr,
Bernard