2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
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. Program.cs 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) { Console.WriteLine(dt.Date.ToString()); } Console.ReadKey(); } } Sample Link
|
2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.
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.
Hi Fabrice BM Raud,
Sorry for the inconvenience.
Now, we enabled public access to the application downloadable link.
Regards, Rajendran R.