Link to home
Start Free TrialLog in
Avatar of SWP
SWP

asked on

mask edited ???

Dear Experts,
      I faced a problem in using the maskedited for Date.
When I key in the date like :) 08/15/1998, the maskedited will automatically convert to 15/081998.. although I have already formated my date into dd/mm/yyyy... How can I solve this problem ?  This type of automatically converting problems also happened when  I try to key in the date like:)

15/08/0020 ----> 15/08/2020 etc.

How can I detect it and not allow this type of convertion
occurs ???



SWP      
Avatar of sunj
sunj

May I know what do you expect when you enter 08/15/1998? I thought since you have set the format to be dd/mm/yyyy, the converted result 15/08/1998 is correct...

sunj
what is your mask and format strings?
ASKER CERTIFIED SOLUTION
Avatar of trkcorp
trkcorp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
TRKCORP is correct. What you are looking for is European sytle Date settings.  These settings use dd/mm/yyyy vise U.S settings mm/dd/yyyy.  Just go to Regional setting in Your control pannel to change.  If that isnt what you want then call me.

Anthony
Avatar of SWP

ASKER

Sunj is correct. I had set the format of date to dd/mm/yyyy, so VB straight away convert the incorrect date to the correct format. thank you for yours answers.