What the "best" input mask for a date field?

D

diarmuidq

Hi
Normally I have my format as Short Date, and my input mask as
00/00/00;0;_
Thas is the user would enter 21/11/03 for todays date. However, on some
sites, the Short Date format in the Regional Options (Control panel) is set
to dd/mm/yyyy
This causes a problem - error message "Value inappropiate for the input mask
specified for this field". Easily fixed by switching the short date format
in regional options, but it would be better if no error occured.
So I was wondering what other develops do.

Thanks
Diarmuid
 
R

Rick Brandt

diarmuidq said:
Hi
Normally I have my format as Short Date, and my input mask as
00/00/00;0;_
Thas is the user would enter 21/11/03 for todays date. However, on some
sites, the Short Date format in the Regional Options (Control panel) is set
to dd/mm/yyyy
This causes a problem - error message "Value inappropiate for the input mask
specified for this field". Easily fixed by switching the short date format
in regional options, but it would be better if no error occured.
So I was wondering what other develops do.

The best InputMask for dates is none at all with an unambiguous format
applied.

Masks are the spawn of Satan ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top