> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Dennis Chuah
> Sent: Tuesday, 13 April 1999 22:21
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: DateToStr & Y2K
>
>
>
> Patrick,
>
> > Perhaps someone could bring me up to date on the issue of the DateToStr
> > function which returns a string form of the date according to the
> > ShortDateFormat global variable (or I think it is
> LOCALE_SSHORTDATE in the
> > Win32 API).
>
> When a Delphi app starts up, the VCL reads the Windows short date
> format and
> stores it in a global variable (ShortDateFormat).  This variable also gets
> updated everytime someone makes a change to the short date
> format.  What you
> will need to do to ensure Y2K compatibility is to make sure this
> variable is
> set to 4 digit year EVERYTIME you use DateToStr (write a wrapper
> function).

How do you ensure that? Or do you rely on the user to set it in control
panel properly?

> For us we tell our clients to set their short date format to 4 digit years
> or we will not guarantee Y2K compliance.  Setting the short date
> format this
> way also ensures that older MS apps are Y2K compliant (eg.
> Access).  This is
> especially important if you interface to them in any way or other.

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

Reply via email to