> Depends on what you are trying to achieve.
> If you simply what to always have your Delphi application use the 4
> digit year, regardless of what the users set windows to try this.
>
> In the application's project file
>
> Application.Initialize;
> Application.UpdateFormatSettings := False;
> ShortDateFormat := 'd/mm/yyyy'; { ensure that century is shown }
Hmm ... UpdateFormatSettings := False; is a good idea - didn't think of this
one. However, I don't think you should limit your users to the dmy format.
It is better to use the existing ShortDateFormat, and convert 'yy' to
'yyyy'.
-----------------------------------------------------
Dennis Chuah, BE (Hons) [mailto:[EMAIL PROTECTED]]
Manager, Product Development
Contec Data Systems Ltd. [http://www.contecds.com]
tel: +64-3-3580060 ext-775 fax: +64-3-3588045
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz