I've written a (fairly nice imho) calendar display program that uses a MS SQL server to hold the data. One of the problems I am having is with recurring events. Entering them day after day after day is a bit much, since some of them go for a month or two non-stop. What I'd like to do is give the person entering the data the option of a start and stop date. Then when it is submitted, some how cycle thru every date between the two to enter the information in hte SQL server.
Should it be something as simple as adding a day to the start date, creating a new date from that, sending the SQL statement, increment a counter, add the counter to the start date and repeating until start date + counter == end date? Or is there a better way?