Solved

mask edited ???

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now