Terry Sta. Maria wrote:
> Also, the dateAdd function uses 'yyyy' to specify year (where 'y' specifies 
> day of year).
>
> So "#dateAdd('y',-1,now(), yyyy)#" should be "#dateAdd('yyyy',-1,now(), 
> yyyy)#".
>
> Terry
>
>   
Terry:
dateAdd only takes three arguments. Not four.

|*DateAdd*|("/datepart/", /number/, "/date/"/)

/Year(now() - 1) is probably the simplest solution, and that's already been 
given

Cheers,
Chris
/

/ 

>> How do I date format a year behind the current year? In other words, I 
>> would like to populate a dropdown with 2006 and 2007.
>>
>> Tried this, but no dice:
>>
>> "#dateAdd('y',-1,now(), yyyy)#"
>>
>> Thanks.
>>
>> Robert O.
>>     
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265973
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to