Thanks for the help... I was playing around with it after I sent the email and found 
that I needed to pass a complete date to daysinmonth().


Steven D Dworman
---------------------------
Cold Fusion Programmer
Web Applications Developer

ComSpec International

phone: 248.647.8841
cell:  734.972.9676
---------------------------
http://www.comspec-intnl.com

-----Original Message-----
From:   Stephen Moretti [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, June 01, 2001 9:24 AM
To:     CF-Talk
Subject:        RE: What's with this?

Steven,

The function daysinmonth takes a full date and not just the month,so really
all you need is : daysinmonth(now())

regards

Stephen

> -----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