Re: Creating a Calendar

2004-12-09 Thread Douglas Knudsen
> > > > Just for kicks, wanted to see if i could do a calendar in nothing but > > > cfscript. Not that it's necessarily the best way to do this, but the > > > code/logic is there for the perusing. > > > > > > > > > > > > > &

Re: Creating a Calendar

2004-12-09 Thread Greg Morphis
gt; > > > > > > > > On Thu, 9 Dec 2004 11:06:23 -0600, Greg Morphis <[EMAIL PROTECTED]> wrote: > > > I'm creating a calendar and need to know how to make the days start on > > > the day the month starts one.. IE.. > > > December has 31 days and

Re: Creating a Calendar

2004-12-09 Thread Douglas Knudsen
a calendar in nothing but > cfscript. Not that it's necessarily the best way to do this, but the > code/logic is there for the perusing. > > > > > On Thu, 9 Dec 2004 11:06:23 -0600, Greg Morphis <[EMAIL PROTECTED]> wrote: > > I'm creating a calenda

Re: Creating a Calendar

2004-12-09 Thread Charlie Griefer
Greg Morphis <[EMAIL PROTECTED]> wrote: > I'm creating a calendar and need to know how to make the days start on > the day the month starts one.. IE.. > December has 31 days and starts on Wednesday. > So for December I have created 35 divs using a > I run a query return days, fi

Re: Creating a Calendar

2004-12-09 Thread Rick Root
Greg Morphis wrote: > I'm creating a calendar and need to know how to make the days start on > the day the month starts one.. IE.. Greg, you may find this helpful... from a code standpoint. I wrote this custom tag back in 1998 or 1999 I think. It's old nasty code but

RE: Creating a Calendar

2004-12-09 Thread Ian Skinner
firstOfMonth = CreateDate(year,month,1); endOfMonth = CreateDate(year,month,DaysInMonth(firstOfMonth)); startday = 2; //1=Sunday, 2=Monday, ..., 7=Saturday //calculate first day of calendar display. daynum = DayOfWeek(firstOfMonth); if (day

RE: Creating a Calendar

2004-12-09 Thread COLLIE David
> I'm creating a calendar and need to know how to make the days > start on the day the month starts one.. IE.. December has 31 > days and starts on Wednesday. So for December I have created First get the DayOfTheWeek of the start and end of the month. Then work out the number s

Creating a Calendar

2004-12-09 Thread Greg Morphis
I'm creating a calendar and need to know how to make the days start on the day the month starts one.. IE.. December has 31 days and starts on Wednesday. So for December I have created 35 divs using a I run a query return days, first day of month, the number of weeks in the month (1-5)