everything u need is here
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi58.htm#wp1103187  


^_^


Seriously, if I understand your question correctly, take a look at dateDiff() to determine the number of months from April 2004 to Now(), note Now() is a function.   Now loop from 1 to this number.  On each iteration use DateAdd() to add 1 month to the atarting month of April 2004, look at CreateDate() to set this.  Bamm!!!


something like...in psuedo code
myStart = CreateDate('2004','4','1')
numMonths = DateDiff('m',myStart,Now())
loop over i from 0 to numMonths
  myDate = DateAdd('m',myStart)
  <cfoutput>#myDate#</cfouput>
end loop


Doug

-----Original Message-----
From: Asim Manzur [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 3:18 PM
To: CF-Talk
Subject: from APRIL 2004 till current month

<select size="1" name="month1" > <option value="A" selected>All Months</option>
</select>

How can I generate the dynamic months till this month from April in select box

Regards,
Asim Manzur
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to