Click to See Complete Forum and Search --> : Calendar Program Design
Kevin Fonner
09-20-2001, 07:34 PM
I am building a Calendar Program in Java and I am having some problem with
the design of handling repeating events. I imagine you would have the event
in the database only once, however how could the program quickly computer
what to display when it shows a paticular day. If anybody has any ideas
please let me know.
Thanks,
Kevin
Paul Clapham
09-21-2001, 11:30 AM
Your design has to start by describing (and limiting) what kind of repeating
events you plan to support. For example:
- Daily
- Every weekday
- Every Monday
- Every Monday unless it is a statutory holiday in which case Tuesday
instead
- The first Monday of every month
- Every June 16
- Every February 29
- Every other Monday
- The first day of every other month
- The first weekday of every other month
and the list could go on. Once you have done that you will need to decide
how to store the events in a database and how to identify for each type of
event whether it occurs on a particular date. Good luck.
PC2
"Kevin Fonner" <kevin@fonner.net> wrote in message
news:3baa7d0c$1@news.devx.com...
>
> I am building a Calendar Program in Java and I am having some problem with
> the design of handling repeating events. I imagine you would have the
event
> in the database only once, however how could the program quickly computer
> what to display when it shows a paticular day. If anybody has any ideas
> please let me know.
>
> Thanks,
> Kevin
devx.com
Copyright Internet.com Inc. All Rights Reserved