We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to parse the RecurrenceRule in server side?

Platform: ASP.NET MVC |
Control: Schedule |
.NET Framework: 4.5

You can parse the RecurrenceRule of an appointment from the server-side by making use of a new generic utility class RecurrenceHelper. Within this utility class, GetRecurrenceDateTimeCollection method is defined that generates the date instances based on the RecurrenceRule and recurrence start date of the appointment.

You can find the complete class definition of RecurrenceHelper utility in RecurrenceHelper.cs file and can refer to it in any of the application that is available along with the following sample link.

By referring to the above helper class in your sample project, you can make use of the GetRecurrenceDateTimeCollection method by passing the RecurrenceRule and start date of the recurrence appointment, which automatically generates the date instances as a result.

For example, refer to the following code examples that makes use of the method defined within the RecurrenceHelper class.


class Program
        static void Main(string[] args)
            List<DateTime> dates = new List<DateTime>();
            var RecurrenceRule = "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;COUNT=10;EXDATE=04/08/2015,06/08/2015";
            //Pass the recurrencerule string and the start date of the appointment to this method that returns the dates collection based on the recurrence rule
            dates = RecurrenceHelper.GetRecurrenceDateTimeCollection(RecurrenceRule, DateTime.Now.Date).ToList();
            // Now, the variable “dates” contains the date collection, with that the appointment instances can be created manually.
            foreach (DateTime dt in dates)

Sample Link



2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
You must log in to leave a comment
Direccion Tecnica Ecaldima
Jan 02, 2020

The file can't be downloaded You don’t have permission to access this file. The reason may be: The incident associated with this file is not tied to the account you used to log in. To Logout use this link. Your enterprise portal admin has not allowed you to access other portal users’ incidents. Ask admin to change the support visibility in their Syncfusion profile. If you feel this information is wrong and you need to download this file, please contact us.

Rajendran R [Syncfusion]
Jan 03, 2020

Hi Fabrice BM Raud,

Sorry for the inconvenience.

Now, we enabled public access to the application downloadable link.

Regards, Rajendran R.

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile