Design Pattern: Calendar?

Discussion in 'Programming' started by daniel.skinner, Jul 6, 2008.

  1. #1
    Hi,

    I'm planning on building a simple availability calendar for use with various projects. At the moment it's simple but I like to build code that is elegant and easily extended when I need.

    Is there a tried and tested pattern for building functional calendars which are easily extended?

    I was initially thinking Composite - but is it a good idea to treat years/months/days so similarly?

    Decorating days with events? How to decorate a group of days with the same event?

    Any ideas or tips?
     
    daniel.skinner, Jul 6, 2008 IP