Solved

Date Formatting

Posted on 1998-09-04
3
141 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

Industry Leaders: 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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

696 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