This is how that function is supposed to operate. Firstdayofmonth() will return a julian date (day of the year). Dayofweek() requires a full date (mm-dd-yyyy). Think of it this way, how would dayofweek() know what year it is from a julian date? What are you trying to accomplish from this?
Jeff Garza Lead Developer/Webmaster Spectrum Astro, Inc. 480.892.8200 [EMAIL PROTECTED] http://www.spectrumastro.com -----Original Message----- From: David Brown [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 9:12 AM To: CF-Talk Subject: Bug I think Server Product ColdFusion Server Version 4, 5, 1, SP2 Edition Professional Has anyone see this? I am trying to find the firstdayofmonth(date) and then find what dayofweek(FirstDayofMonth(date)) is. For example: <cfset firstday = FirstDayofMonth("12/17/2001")> <cfset weekday = DayofWeek(firstday)> <cfoutput>#firstday# #Weekday# </cfoutput> This will give you: 335 for firstday (12/1/01) 6 for Weekday(11/30/1900) If you try to do a dateformat(firstday,"mm/dd/yyyy") you get 11/30/1900 . You don't get an error reporting that you can't do that. You just get the wrong answer. So I think that is a bug with CF 4.5. Any ideas. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

