If what you want is a 4 digit year always then you can modify your project
(.dpr) file to achieve that.
after the "begin" and before "Initialize" - as below:
ShortDateFormat := 'dd/mm/yyyy'; <-- New
Application.Initialize; // <-- Existing
Application.UpdateFormatSettings := False; < -- New
//Stop windows resetting the short date format.
Then everything is 4 digit year for your app only
Max
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Mark Howard
Sent: Tuesday, 12 December 2000 12:29
To: Multiple recipients of list delphi
Subject: [DUG]: Paradox Date Format
Hi Guys
In testing my recently written App for Y2K compliance and I have found
the following.
When my system date year is set to 1999 all dates in my Paradox tables
are displayed as yy
When my system date year is set to 2000 all existing dates are displayed
as yyyy.
BUT
When I then add new records dates for the year 2000 are displayed as yy
only. ie /00
I figured that I could fix this by changing the BDE System Date format
to 4 digit year but that has not worked. Didn't seem to alter anything.
I also tried putting the Help example of DbiSetFormat into my code
immediately before opening the tables in the app but got a message
saying "An error occurred while attempting to initialise the Borland
Database Engine $2A06"
I am not an exprienced programmer and would appreciate some pointers on
how to go about fixing this.
Using D3.0 and no aliases - database path is referenced directly.
TIA Mark
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz