CORRECTION!

Check out the documentation for DaysInMonth()...

You have to supply a DATE object, not a numeric month....

I fell for that one too!

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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to