Calendar Program Design


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Calendar Program Design

  1. #1
    Kevin Fonner Guest

    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

  2. #2
    Paul Clapham Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center