> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Edward Huang
> Sent: Tuesday, 9 February 1999 16:49
> To: Multiple recipients of list delphi
> Subject: [DUG]: Y2K Issues - StrToDate
>
>
> Hi, Group,
>
> I'm still using Delphi 3.02 at moment, and notice that StrToDate funtion
> does not treat 2 digit year nicely. e.g StrToDate('01/01/01') returns
> 01/01/1901, not 01/01/2001 which should be the one many people want.
How is Delphi supposed to know that? It is merely following the convention
of the day (omitting the digits of the current century). If you want 2001
then put 20 in front of the year and feed that into StrToDate !
I would rather have any day a scheme where I can tell Delphi exactly the
date I want than to have it guess and get it wrong.
<snip>
============================================
Views contained in this post are my personal opinions and unless otherwise
stated not those of any organisation I am associated with.
----------------------------------------------------------------------------
----------
Patrick Dunford, ChristChurch, NZ
http://patrick.dunford.com/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz