Maybe this'll help...? http://recurrence.riaforge.org
For a given schedule, you'll store start datetime. If that's all you store, you can use that value to figure out *all* weekly start datetimes. Then you could add an end datetime for the schedule and use that to figure out *all* weekly end datetimes. Then you could add an end date for the schedule and use that to indicate when this schedule ends. One DJ could have many schedules (assuming DJ's can do more than one gig per week). On Fri, Jan 23, 2009 at 7:02 AM, Casey Dougall < [email protected]> wrote: > On Fri, Jan 23, 2009 at 7:41 AM, John M Bliss <[email protected]> > wrote: > > > And, yes, you should be storing that data as datetime in the database. > > That'll give you the most flexibility. > > > > > > What should I use as the default date? Just the first date they are added > to > the schedule for their particular day of week. > > So if my first show is this Sunday jan 25 2009 I use this? Then if someone > is added to Sundays starting on Superbowl Sunday I use that date? > > Should I just hardcode a starttime as a date in past and always refreance > that to figure out day of week? > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318386 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

