Solved

Date Formatting

Posted on 1998-09-04
3
142 Views
Last Modified: 2010-04-30
I am using the MaskEdBox to capture a date.
If I use a format mm/dd/yyyy, the data ends up formatted the way I want. But as soon as I add the mask 99/99/9999 so the user does not have to key the /, the format no longer operates. How can I accomplish both?
0
Comment
Question by:BenJr
[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
  • 2
3 Comments
 
LVL 2

Expert Comment

by:BergJC
ID: 1433020
Use the MASKEDBOX1.FormattedText property when you read the input
0
 

Author Comment

by:BenJr
ID: 1433021
Thanks for trying, but I have tried this..... it does not work.... whether I read the Text, ClipText or FormattedText value the _ PromptChar remains and prevents the format function from operating......
0
 
LVL 2

Accepted Solution

by:
BergJC earned 50 total points
ID: 1433022
Would be it be accetable in your application to change the PromptChar to a space?
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…

729 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