Hi,
I'm trying to implement a monthly recurrence rule. What I want is: Starting Sep 9th , every month on 9th the schedule should run from 12 am till 5 pm till Jan 9, 2009. I can't seem to get this to work. Instead of selecting only 9th on the Calendar every month, all days are getting selected between these two days.
Here's the scenario:
Start: Sep 9, 2008 12 am
End: Jan 9, 2009 5 pm
I'm setting the properties like this:
I'm trying to implement a monthly recurrence rule. What I want is: Starting Sep 9th , every month on 9th the schedule should run from 12 am till 5 pm till Jan 9, 2009. I can't seem to get this to work. Instead of selecting only 9th on the Calendar every month, all days are getting selected between these two days.
Here's the scenario:
Start: Sep 9, 2008 12 am
End: Jan 9, 2009 5 pm
I'm setting the properties like this:
RecurrenceRange
monthlyRange = new RecurrenceRange();
monthlyRange.Start = Start; // Sep 9, 2008 12 am
monthlyRange.RecursUntil = End;// Jan 9, 2009 5 pm
TimeSpan timeScheduled = Convert.ToDateTime(End.ToShortTimeString()) - Convert.ToDateTime(Start.ToShortTimeString()); //Run from 12 am to 5pm
monthlyRange.EventDuration = timeScheduled.;
MonthlyRecurrenceRule monthlyRecurrenceRule = new MonthlyRecurrenceRule(DayOfMonth, schd.RepeatInterval, monthlyRange); //(9, 1. monthlyRange)
What am I doing wrong?