Oops, forgot startMonth:

<cfset startMonth="3">
<cfset startYear="2003">

<cfoutput>
<cfloop from="#startYear#" to="#datePart("yyyy", now())#" index="currentYear">
  <cfloop from="#iif(currentYear neq startyear, "1", "startMonth")#"
to="#iif(currentYear neq datePart("yyyy", now()), "12", "datePart('m',
now())")#" index="currentMonth">
    #monthAsString(currentMonth)# #currentYear#<br>
  </cfloop>
</cfloop>
</cfoutput>

On Mon, 9 Aug 2004 10:19:07 -0400, Joe Rinehart <[EMAIL PROTECTED]> wrote:
> Hey John,
>
> Here ya go:
>
> <cfset startMonth="3">
> <cfset startYear="2003">
>
> <cfoutput>
> <cfloop from="#startYear#" to="#datePart("yyyy", now())#" index="currentYear">
>   <cfloop from="1" to="#iif(currentYear neq datePart("yyyy", now()),
> "12", "datePart('m', now())")#" index="currentMonth">
>     #monthAsString(currentMonth)# #currentYear#<br>
>   </cfloop>
> </cfloop>
> </cfoutput>
>

--
For Tabs, Trees, and more, use the jComponents:
http://clearsoftware.net/clear/?template=downloads.jComponents
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to