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

  • Thread starter Thread starter diarmuidq
  • Start date Start date
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
 
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 ;-)
 
Back
Top