<cfloop index = I from = -1 to = -12>
<option
value="#dateFormat(dateAdd('m',I,now()),'mm/dd/yyyy')#">#dateFormat(date
Add('m',I,now()),'mm/dd/yyyy')#
</cfloop>
</select>
try that
...tony
-----Original Message-----
From: Robert Orlini [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 2:30 PM
To: CF-Talk
Subject: previous months
I know how to use the date function and all: #DateFormat(todayDate,
"mmm-dd-yyyy")#
But how do I do a search for previous months? I remember seeing a minus
and a number somewhere in the dateformat mask.
I want to make a dropdown to list previous months.
Robert O
HWW
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

