Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calendar recurrences

Status
Not open for further replies.

adss123

Programmer
Jan 7, 2007
1
US
I have been searching for this solution for awhile, before making this post, and just can't get a handle around it. I'm working on a calendar project in ASP. Basically, I have a calendar built and functioning fine. Now, I need to add the functionality where if you can add recurrent monthly tasks.

I know that this relies on the Datepart() function and I'm now well-boned up on that, but can seem to pull everything together.

Anyway insight, working examples, or a pointing in the right direction would be very much appreciated.

thx
 
What are you using for your backend, a database?

I think generally the way people work this out is to create a calendar table (or list of entries). What they will then do is run a script every night or every week that calculates out the recurring appointments for the next two months and adds them into the table holding the future entries if they are not already there. The advantage to this is is that it is fairly straight forward, makes it easier to change one future occurrence without disrupting or duplicating the series, and puts all of the processing on the nightly script instead of on the page that is trying to display the calendar to the user.

There are other options, but I'm not sure what kind of structure you already have built or whether you were looking for anything more complicated then the above suggestion.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top