Angel Stewart writes: > Hey all... > > #CreateDate(Year(Now()),Month(Now()),DaysInMonth(Month(NOW())) > > That statement gives this error message: > > An error occurred while evaluating the expression: > > > #CreateDate(Year(Now()),Month(Now()),DaysInMonth(Month(NOW())))# > > Error near line 87, column 88.
It's your daysInMonth() function...daysInMonth() takes a full date as the argument. You're passing it an integer to represent month. This can't work, as CF needs a full date to determine days in month (february will either be 28 or 29 depending on the year). So... #CreateDate(Year(Now()),Month(Now()),DaysInMonth(NOW()))# should do it for you. hth, Charlie > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

