Skip to main content
May 5, 2011
Question

Date drop down menu

  • May 5, 2011
  • 2 replies
  • 1633 views

Hi guys what i am looking to do is have 3 drop down menus Day - Month - Year and then some how pre select the date to todays date from the client computer or the server.

Is this possable?

Or other sugesstions welcome.

Thanks

Jonathan Hemmings

    This topic has been closed for replies.

    2 replies

    Inspiring
    May 5, 2011

    cfselect has a selected attribute.  That's how I'd do it.  Also, I'd use the date from the server unless there was a really compelling reason to attempt to get it from the client.

    talofer99
    Inspiring
    May 5, 2011

    date picker :

    <cfinput name="stDate" type="datefield" mask="mm/dd/yyyy" value="#dateformat(now())#"/>

    May 5, 2011

    Still a bit confuesed could you help? what do i do with

    that?

    talofer99
    Inspiring
    May 5, 2011

    put it between

    <cfform>

    </cfform>

    and see what happens ...

    and if u MUST have 3 dropdowns  ... here is a link to a VERY old CF tag aof mine ... there is an example in the ZIP file

    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1000227#