mask edited ???

Posted on 1998-09-23
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 ???

Question by:SWP
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

Expert Comment

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...

LVL 15

Expert Comment

ID: 1436365
what is your mask and format strings?

Accepted Solution

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

Expert Comment

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.


Author Comment

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.


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

691 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