Nope, when I do #daysInMonth(createDate(2010, 2, 1))# it returns '28' 
correctly.  


You would get '31' for #daysInMonth(createDate(2010, 1, 2))#, though, I 
suppose.

----------------------------------------

From: "Jeff Epstein" <[email protected]>
Sent: Tuesday, March 01, 2011 11:13 AM
To: "cf-talk" <[email protected]>
Subject: DaysInMonth issue

I just had a failure of the DaysInMonth function. For a report running on 
February data, "from" 2010-02-("01" hardcoded), "to" being DaysInMonth, the 
date result was "2010-02-31"!!

I had to hard-code "2010-02-28" as "to" to make the report work. 

Anybody else having February problems today with DaysInMonth?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342653
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to