On Thu, 31 Mar 2005 10:52:13 -0500, Adina Rosenbaum <[EMAIL PROTECTED]> wrote:
> 
> This might be a simple question - but I was wondering what is the best way
> of having the user enter a date via a form and then putting it in a date
> field - if  I have three seperate drop down boxes for day month a year? how
> do I put it together to go into one date field....Thank you

After several different versions, I have settled on a combination of two ways:

1) text box with a calendar date picker
2) simple text box with after-input validation

In option 1 or 2, I allow them to enter the date in one of three formats:
mmddyy, mm-dd-yy, or mm/dd/yy (can also us yyyy in any of these ways)

I then have a script that checks for the date seperator and process
the data, and checks for a valid date using IsDate().

Using the date picker is hit-or-miss, since many people prefer to type
it in by hand rather than going through a date picker system.  My
folks usually go for speed and are used to typing in the date mmddyy
or mmddyyyy.


---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to