>
> > > 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.
> > >
> > >
> > >
> > >
> &
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
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
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
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
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
> 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
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)
8 matches
Mail list logo