I am working on a C# application that relies heavily on recurring events. Following kinds of recurrence are supported:
Basically, the application supports all the different combination of recurrences as supported by MS Outlook.
The problem:
The individual occurrence as calculated by the system for a recurring event does not consider the daylight savings and as a result the occurrence date time is displaying wrongly by the system. Is there a standard library or third party module available that can handle recurrence date calculations? Basically I want an API in the below format.
List<Occurence> GetAllOccurences(DateTime startTimeInUTC, DateTime EndTimeInUTC, TimeZone targetTimeZone)
class Occurrence
{
DateTime OccurenceStartDateTime {get;set;}
DateTime OccurenceEndDateTime {get;set;}
}
Is such an API available? It could make my life much easier.
This may help Task Scheduler Or search for Cron libraries, there are a couple of different ones and one of them should do as you wish.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With