Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DATE display problems
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
DATE display problems
Miscellaneous
Thread ID:
00163822
Message ID:
00163822
Views:
58
Hello,

We are using VisualFoxPro 6.0 at the moment. We are creating a form which shows the date. In our country we use the dd-mm-yy format.

We want to create a textbox with the date in it which will allow the user to type in the following format: dd-mm-yyyy and after the user leaves the textbox (lostfocus) we want to change the entered date into dd-mmm-yyyy so it will show the short name of the month. And when they active the textbox again it will switch to dd-mm-yyyy format for entry.

We tried to put the DataFormat property to LONG but this way we have to change the Windows settings of the computer everytime so it will show the correct format (since the LONG property will use the windows settings). This is too complicated for the customer of our application. We tried to set the CENTURY property to ON but when we left the textbox the date would jump to a wrong date since it would take the 19 from 1998 instead of the 98.

So our question is: how can we solve this problem?

Thanks in advance for your answer and time!
---
Greetings,

Michiel Willems
Willems Advies & Automatisering

E-Mail: willems@automatisering.nu
Website: www.automatisering.nu
ICQ: 10430590
Next
Reply
Map
View

Click here to load this message in the networking platform