Thanks everyone for the replies. I've been pulled in another direction
temporarily (job search ;)

Duane

> -----Original Message-----
> From: Jason Lees (National Express)
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 05, 2001 6:32 AM
> To: CF-Talk
> Subject: RE: Calendar Question
>
>
>
> Heres some psuedo code, I'm not sure how to do the actual CF but hope this
> helps
>
> CalRows=4
> if (daysInMonth=28 and firstdayinmonth>Sunday) or daysinmonth>28 then
>       calrows=5
> if (daysinmonth=30 and firstdayinmonth=Saturday) or (daysinmonth and
> firstdayinmonth>thursday) then
>       calrows=6
>
> This should work. This assumes the calender cols are in the order
> Sun-Sat.
>
>
>
> Jason Lees
> National Express
> Email : [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
> Sent: 04 January 2001 22:17
> To: CF-Talk
> Subject: Calendar Question
>
>
> 1) Does anyone have a fool proof formula from coming up with the number of
> rows in a calendar for a month.
>
> I've tried a couple of things but with no luck.
>
> TIA,
> Duane Boudreau
> CEO/CTO, CFExperts
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to