Try this:
<CFSET EndDay = CreateODBCDate(CreateDate(ByYear,ByMonth,
DaysInMonth(createdate(byyear,bymonth,1))))>
Regards,
Howie Hamlin
--
inFusion Project Manager; On-Line Data Solutions, Inc. (631)737-4668
www.CoolFusion.com
============================================================
Please vote for iMS in the Most Innovative category here:
*** http://www.sys-con.com/ColdFusion/readerschoice2000/ ***
============================================================
Check out inFusion Mail Server - the world's most configurable email server
----- Original Message -----
From: Kevin Queen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 26, 2000 12:07 AM
Subject: Repost - CreateODBCDate Error
> I sent this on Tuesday and never saw it come up on the list (I thought we
> had this slow list issue fixed) so I am reposting, sorry if you are
getting
> this twice.
>
> -Kevin
>
> -----Original Message-----
> From: Kevin Queen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 25, 2000 4:18 PM
> To: '[EMAIL PROTECTED]'
> Subject: CreateODBCDate Error
>
>
> I have a 'function' : <CFSET EndDay = #CreateODBCDate(CreateDate(#ByYear#,
> #ByMonth#, DaysInMonth(#ByMonth#)))#> When I set #ByMonth# to 9 or 11 the
> function sets days to 31 and the template fails (obviously) is this a
known
> error with CF4.5, NT 4.0, IIS 4.0, and SP6?
> Is there a valid work around?
>
> TIA,
> Kevin Queen
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.