>> In the application's project file
>
> Application.Initialize;
> Application.UpdateFormatSettings := False;
> ShortDateFormat := 'd/mm/yyyy'; { ensure that century is shown }
>No, you cannot do this unless you know which country your application is
going to be run in. For example in some countries mm/dd/yyyy is the correct
format. In other countries they may use different separator characters from
the /. It is for this reason you should use the information that Windows
gets for you from the Control Panel.<
What I do is look for 'yyyy' in the ShortDateFormat, and if its not there,
then replace 'yy' with 'yyyy'. Works for all countries.
Terry
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz