No bug.  daysInMonth() takes a full date as a parameter -- not the month.  If you
say daysInMonth(now()), it will work as expected.

Craig

> -----Original Message-----
> From: Norman Elton [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, June 01, 2001 9:33 AM
> To:   CF-Talk
> Subject:      RE: What's with this?
> 
> Whoa... Definite bug there! I was able to replicate it without much problem
> at all :)
> 
> Last check of the calendar verified that yes, there are only 30 days in
> June.
> 
> Norman
> 
> -----Original Message-----
> From: Jason Lees (National Express)
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 01, 2001 9:14 AM
> To: CF-Talk
> Subject: RE: What's with this?
> 
> 
> 
> Doesn't June only have 30 days!!!!!
> 
> 
> Jason Lees
> National Express
> Email : [EMAIL PROTECTED]
> 
> 
> -----Original Message-----
> From: Steven Dworman [mailto:[EMAIL PROTECTED]]
> Sent: 01 June 2001 14:11
> To: CF-Talk
> Subject: What's with this?
> 
> 
> I have this bit of code...
> 
> <cfset
> date1=dateformat(createdate(year(now()),month(now()),daysinmonth(month(n
> ow()))),"mm/dd/yyyy")>
> <cfset
> date2=dateformat(createdate(year(now()),month(now()),1),"mm/dd/yyyy")>
> 
> and I'm getting this error on date1
> 
> 
> In the function CreateDate(year, month, day) the combination of the
> arguments, which are 2001- 6-31, have resulted in an invalid date value.
> The valid range of dates approximately covers the period between 100 AD and
> 9999 AD
> 
> 
> WHY?
> 
> 
> Steven D Dworman
> ---------------------------
> Cold Fusion Programmer
> Web Applications Developer
> 
> ComSpec International
> 
> phone: 248.647.8841
> cell:  734.972.9676
> ---------------------------
> http://www.comspec-intnl.com
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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