If I have a table of appointments with the following columns, how do i query the rrule to pull out appointments that occur on a specific date or between two dates?
Appointments
------
id
name
dt_start
dt_end
rrule
So for example lets say I have an appointment that starts on 2016-09-28 and ends on 2017-04-28 and it occurs every 2 weeks on Monday, Friday until April 28, 2017. The following would be the RRule:
RRULE:FREQ=WEEKLY;INTERVAL=2;UNTIL=20170428T230000Z;BYDAY=MO,FR EXDATE:20170414T023000Z
So using the above example, some of the dates the above appointment would occur on would include the following:
2016-09-30 FRI
2016-10-10 MO
2016-10-14 FRI
2016-10-24 MO
Now how do I query this table using SQL or any other method to pull out all appointments that occur on 2016-10-10?
For the record this would be done in C# asp.net and SQL server. Is there a C# or SQL Server library that I can use to parse and query the rrule?
I've had a look at ICAL.net but there doesn't seem to be much documentation on it or how I'd go about using it for the purpose as explained above.
Does any one have any experience with ICAL.net?