General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only