Ok for some reason I have a recurrance dated for 19/04/2016 but for some reason its giviing me recurrances in the past instead of the future.
01.if (chkWeekly.Checked == true)02. {03. //Creating a Weekly Recurrence rule04. int interval = 2;05. RecurrenceRange range = new RecurrenceRange();06. 07. range.Start = Convert.ToDateTime(rdStartShift.SelectedDate);08. range.EventDuration = TimeSpan.FromMinutes(30);09. range.MaxOccurrences = 3;10. RecurrenceDay recurrenceDay = (RecurrenceDay) Convert.ToInt32(rdDayOfWeek.SelectedValue);11. // _shifts.RecurrenceRule = new WeeklyRecurrenceRule(interval, recurrenceDay, range).ToString();12. DayOfWeek startDayOfWeek = DayOfWeek.Monday;13. _shifts.RecurrenceRule = new WeeklyRecurrenceRule(interval, recurrenceDay, range, startDayOfWeek).ToString();14. }
I am sure if i set weekly which I have done acording to the option it should set them in the future.
