Solved

mask edited ???

Posted on 1998-09-23
5
164 Views
Last Modified: 2010-04-30
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      
0
Comment
Question by:SWP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Expert Comment

by:sunj
ID: 1436364
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
0
 
LVL 15

Expert Comment

by:Eyal
ID: 1436365
what is your mask and format strings?
0
 
LVL 4

Accepted Solution

by:
trkcorp earned 80 total points
ID: 1436366
Go to regional settings on the control panel and check your date formats.
0
 
LVL 1

Expert Comment

by:toys032498
ID: 1436367
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
0
 

Author Comment

by:SWP
ID: 1436368
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.


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question