You're right. The correct version should be:
#Year(DateAdd("yyyy", 0, Now()))#
No need for the -1.
andy
-----Original Message-----
From: Eric Cobb [mailto:[email protected]]
Sent: Tuesday, August 31, 2010 4:13 PM
To: cf-talk
Subject: Re: Check out this... code....
I'm glad you posted this today, I just found this one a few minutes ago:
#Year(DateAdd("yyyy", 1, Now()))-1#
Thanks,
Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336692
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm