-
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.
Thanks,
Kevin
-
Re: Calendar Program Design
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks