Calendar Program Design
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.
Re: Calendar Program Design
Your design has to start by describing (and limiting) what kind of repeating
events you plan to support. For example:
- Every weekday
- Every Monday
- Every Monday unless it is a statutory holiday in which case Tuesday
- 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.
"Kevin Fonner" <email@example.com> wrote in message
> 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
> 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.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL