This is a migrated thread and some comments may be shown as answers.

How do I setup a recurrance rule for the 2nd Thursday of every month?

1 Answer 15 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
vincent
Top achievements
Rank 1
vincent asked on 09 Mar 2013, 07:10 PM
I need to schedule this rule on the calendar using the Recurrence Rules. Do you guys know how to create this rule and is there sample code to do this?

1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 11 Mar 2013, 09:59 PM
Hello Vincent,

This is how you would do something like that, but I you'll have to repeat it 12 times, specifying a date where it's the second Thurday of the month and it should work (I hope that makes sense).

Here is the code to setup the RadCalendarDay (I specified the second Thurday of March). If you add that to the calendar you'll see that it highlights the second Thursday of March every year.

RadCalendarDay day = new RadCalendarDay();
day.Date = new DateTime(2013, 3, 14); 
day.Repeatable = Telerik.Web.UI.Calendar.RecurringEvents.WeekDayWeekNumberAndMonth;

day.ItemStyle.Font.Bold =

true;

 

 

 


I hope that helps.
Tags
Calendar
Asked by
vincent
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or