Of course - as I said it depends on what you are trying to achieve.


                -----Original Message-----
                From:   Patrick Dunford [mailto:[EMAIL PROTECTED]]
                Sent:   Wednesday, April 14, 1999 2:14 PM
                To:     Multiple recipients of list delphi
                Subject:        RE: [DUG]:  DateToStr & Y2K

                > -----Original Message-----
                > From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
                > Behalf Of Chris Hallowes
                > Sent: Wednesday, 14 April 1999 07:49
                > To: Multiple recipients of list delphi
                > Subject: RE: [DUG]: DateToStr & Y2K
                >
                >
                > 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 }

                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.

                ============================================
                Patrick Dunford, Christchurch, NZ
                Voluntary Student Membership: Equal Representation For
All
                http://patrick.dunford.com/

        
------------------------------------------------------------------------
---
                    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

Reply via email to