daysInMonth() takes a -full- date variable value...not just an integer
(month) value.  Feb will have different days in it depending on the
year.

try #daysinmonth(dateadd("m",-1,now()))#


On Mon, 25 Oct 2004 16:38:13 +0100, James Smith <[EMAIL PROTECTED]> wrote:
> OK, I am sure I am doing something stupid here, but if I simply output the
> following to the browser, it displays 31...
> 
> #daysinmonth(month(dateadd("m",-1,now())))#
> 
> Last time I checked September only had 30 days.  If I output....
> 
> #month(dateadd("m",-1,now()))#
> 
> It displays 9, so I know it is using the correct month.  Someone please help
> me before I pull my hair out and go completely insane.
> 
> --
> James Smith
> [EMAIL PROTECTED]
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=34

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182504
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to