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

2 posts, 0 answers
  1. vincent
    vincent avatar
    61 posts
    Member since:
    Jun 2008

    Posted 09 Mar 2013 Link to this post

    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?
  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 11 Mar 2013 Link to this post

    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 =





    I hope that helps.
  3. DevCraft R3 2016 release webinar banner
Back to Top