Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date entry in mmddyyyy format

Status
Not open for further replies.

hal8000

Programmer
Sep 26, 2000
19
US
In my forms for date fields my users have requested the ability to enter dates using only numbers, no slashes.
i.e. mmddyyyy which then gets converted to 3/10/2004

I have searched but found no solutions yet. What is the easiest way to accomplish this. It seems fairly simple and I have done it in other languages, just have a mental block here. Thanks in advance for any help.
 
If they habitually Tab between controls ( rather than using the mouse ) then put an Input mask into the conrol which will add the separators automatically.

They type 031004 Or 03102004 and the mask will add the '/' to produce and display 03/10/2004 for them


The problem is the Input masks make life a lot more diffecult if the users are 'mouse navigating' because the HAVE to click right at the the start of the control. ( Without the mask they have the whole control area to aim at. )



'ope-that'elps.

G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Thanks, I do see what you mean. Not very user friendly. But, then again, I didn't really want to change it to begin with so I may just let them see a solution and convince them the old way it better.
 
I placed code in the on click event for the date field that empties the date and then repaints the screen so that when they click in the field they can enter mmddyyyy easily. Seems to work. FYI.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top