I know cfoutput#dateformat(now(),'mmm ')#/cfoutput
will put out
current month and year (Jul 2007).
Subtract from the current month using DateAdd() and a negative number for
the month:
#DateFormat(DateAdd(m,-1,Now()),'mmm ')#
Andy
-Original Message-
From: Dale Fraser [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 25, 2007 1:37 AM
To: CF-Talk
Subject: RE: How so I show prior month?
cfoutput#dateformat(createDate(dateAdd(m, -1, now()),'mmm
')#/cfoutput
That isn't correct. CreateDate() takes 3
Thanks everyone!! Now that sure was easier then sitting here beating my
head for the last hour.
On 7/25/07, Andrew Tyrone [EMAIL PROTECTED] wrote:
I know cfoutput#dateformat(now(),'mmm ')#/cfoutput
will put out
current month and year (Jul 2007).
Subtract from the current month using
the coldfusion reference has all functions, not only listed
alphabetically, but also grouped by category (including a date
category).
http://livedocs.adobe.com/coldfusion/7/htmldocs/0354.htm
i have to assume checking there would have been easier than beating
your head as well :)
On 7/25/07,
look up dateAdd() in the docs.
heck i'll even give you the link. all you have to do is click :)
http://livedocs.adobe.com/coldfusion/7/htmldocs/0437.htm
On 7/24/07, Dae [EMAIL PROTECTED] wrote:
Need some assistance.
I know cfoutput#dateformat(now(),'mmm ')#/cfoutput will put out
cfoutput#dateformat(createDate(dateAdd(m, -1, now()),'mmm
')#/cfoutput
Regards
Dale Fraser
http://dalefraser.blogspot.com
-Original Message-
From: Dae [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 25 July 2007 3:26 PM
To: CF-Talk
Subject: How so I show prior month?
Need some
6 matches
Mail list logo