Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to show dates with 2 years only
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00877056
Message ID:
00877373
Views:
11
Hi Richard.
The 'Century' property of the textbox.. I neve knew one existed.. this should do the trick. Thanks a lot for your help



>SET Sysformats pulls date, money, etc formatting from the Windows Control Panel settings. Try putting the "SET CENTURY OFF" in the Load event of your form as well as your SET DATE setting. Set the Century property of your Textbox to Off and the DateFormat to European. Check the formatting in the Windows Control Panel. If the Short date has four digit years, try changing this and see what happens.
>
>
>Richard
>
>>Hi Richard
>>
>>
>>I've tried set century on as follows but the date always appears with 4 digits:
>>
>>1. On a from I set up a Button, whose click event has :
>> Set century off
>> Thisform.refresh()
>>
>>2. I enter my text box control (which has todays date
>> The date still apeears as 13/02/2004 (European )
>>
>>What I want to do is get it to display as 13/02/04
>>
>>regards
>>Gerard
>>
>>(By the way, what does SysFormats do ?)
>>
>>
>>
>>>What version are you using? Check if you have SysFormats set to ON. Also check the DateFormat Property. Are you using Private Datasessions? If so you must reset Century with each opening of the form. There are a couple others too but that's what I remember at the moment.
>>>
>>>HTH
>>>Richard
>>>
>>>
>>>>Hi. I have set century off but dates still come up in all screens with 4 digits for the year.
>>>>
>>>>Is there a global way of ensuring all data controls appear as 2 digits for the year. (I use a standard TextBox class for date fields)
>>>>
>>>>Thanks in advance
>>>>
>>>>Regarrds
>>>>
>>>>Gerard
Previous
Reply
Map
View

Click here to load this message in the networking platform