I'm using ASP.Net MVC2. I would like to know if there is there a formula to calculate recurrence date? So from my client side I'm selecting dates and using ajax.post to send to the controller. My expecting result would be like so for example:
maxdate is September 30th currentdate is today duration is 3 days for every week
so output would be aug12-aug14 aug19-aug21 aug26-28 until the end of september