# CF - month drop down

**URL:** <https://forum.kirupa.com/t/cf-month-drop-down/236415>\
**Category:** programming\
**Created:** [August 20, 2007, 6:19pm UTC](https://forum.kirupa.com/t/cf-month-drop-down/236415 "2007-08-20T18:19:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardic](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bardic/32/3708_2.png) [@bardic](https://forum.kirupa.com/u/bardic)\
**Post date:** [August 20, 2007, 6:19pm UTC](https://forum.kirupa.com/t/cf-month-drop-down/236415/1 "2007-08-20T18:19:35Z")

</div>

Hey,  
I have been beating my head of this all afternoon. I want to create a dynamic drop down list where the index is used to create the month.

so something pretty much like this but working:

```auto

<cfform name="form1">
    <cfselect name="month_loop">    	
        <cfloop index="month_loop" from="1" to="12">
            <option label="DateFormat(#month_loop#,mmmm)" value="DateFormat(#month_loop#,mmmm)">#DateFormat(#month_loop#,mmmm)#</option>
        </cfloop>
    </cfselect>
</cfform>

```

Right now it loops the 12 times but instead of displaying a month it just displays DateFormat(#month\_loop#,mmmm) 12 times… any idea’s?
