I have a set of events that reoccur. I need to be able to calculate when these events occur with the next 5 weeks or so.
This system will inform the user that within this month, these events will occur..
For example:
Event1
- Date Started = Monday 19th Dec 2011
- Recurrence Pattern = Monday/Fortnightly
Event2
- Date Started = Thursday 3rd Feb 2012
- Recurrence Pattern = Thursday/Every Three Weeks
It's now 22 March - within the next 5 weeks what dates will Events 1 & 2 fall on.
It would also be useful to be able to detect if it's Xmas then the event will fall onto another day.
I'm using .NET MVC2 but I guess that's incidental.
Thanks for any assistance