dayOfWeek takes a date, not a day. You want this: dayOfWeekAsString(dayOfWeek(createDate(year(date), month(date), 1)))
firstDayOfMonth returns the day offset from the year for that date, not the date itself. cheers, barneyb On 9/14/05, Doug Bedient <[EMAIL PROTECTED]> wrote: > Is this a bug? When I run this code it does not give me the correct first day > of the month. 2006 is fine. > > <CFSET date = "8/1/2005"> > <CFOUTPUT>#DayOfWeekAsString(DayOfWeek(FirstDayOfMonth(date)))#</CFOUTPUT> > > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218315 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54