I would like to get the first date of month(date). I want the first date of month to do a dateadd in my recurring calendar app. ----- Original Message ----- From: "Garza, Jeff" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 11:17 AM Subject: RE: Bug I think
> 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. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists