Skip to main content
Participating Frequently
May 20, 2010 4:34 PM UTC
Answered

validate cfinput datefields

I am a beginner and I am searching how to validate the cfinput datefields, for example. How can you get the days, months and years of the flash form. What are the functions? Do you know how or where I can get this information? Thanks.

    This topic is closed to new replies. Start a new post to keep the conversation going.
    BKBK
    BKBKCorrect answer
    Community Expert
    May 30, 2010 10:51 AM UTC

    Bkbk, thanks! That is exactly what I want! Have searched and immediately already found one answer - still trying to understand it. Will be getting back to let you know.


    I'll save you some time, Monique. I don't know which one you found, but what you ask for is all here, in Djkhalif's post, Advance date 90 days when date change in Form , courtesy of  -==cfSearching==- and yours truly.

    6 replies

    Inspiring
    May 27, 2010 3:54 PM UTC

    Try

    http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/js/html/wwhelp.htm

    "The mask attribute controls the format of data that can be entered into a field. You can combine masking and validation on a field.

      • In Flash format, the mask can... control the format of the date chosen using the datefield input control...

    The following pattern specifies that the Flash form sends the date selected using a datefield input control to ColdFusion as text in the format 04/29/2004:

    <cfinput name="startDate" type="datefield" label="date:" mask="mm/dd/yyyy"/>..."
    Translate
    Inspiring
    May 27, 2010 3:59 PM UTC