Jacob is right, you want to use dateAdd here
<cfset dateAdd("d",-1,now())>
On 2/1/07, Jacob Munson <[EMAIL PROTECTED]> wrote:
>
> Use DateAdd
>
> On 2/1/07, Orlini, Robert <[EMAIL PROTECTED]> wrote:
> > I using #DateFormat(Now(),"dd")-1# to get a previous date. However,
> using it today it gives me the previous date of 0 as opposed to 31.
> >
> > How do I get it to generate the previous date as the 31st as opposed to
> 0?
> >
> > I'm still new as to understanding this.
> >
> > Thanks!
> >
> > Robert O.
> > HWW
> >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http: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:268328
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4