You want to do the DateAdd first (so put it on the inside), then the
DateFormat:
#DateFormat(DateAdd("d",7,startdate), "yyy.mm.dd")#
-- Josh
----- Original Message -----
From: "Mark Fuqua" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Wednesday, January 02, 2008 1:49 PM
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:295725
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4