You'd wrap the dateformat around the dateadd function, not inside it. 

#DateFormat(DateAdd("d",7,"startDate),'yyy.mm.dd')#

-----Original Message-----
From: Mark Fuqua [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 02, 2008 3:49 PM
To: CF-Talk
Subject: another date format problem

This works

#DateAdd("d", 7, "1/28/2008")#

 

And this works

#DateFormat(startdate, 'yyy.mm.dd')#

 

I need to combine them.  Take the variable startDate, add 7 days and format
it like above in one expression.  Is that possible?  I know this is wrong,
but something like this:

 

#DateAdd("d",  7, "DateFormat(startDate, 'yyy.mm.dd')# 

 

Is this what evaluate is for?

 

Mark






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295724
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