> ----------
> From: Terry Johnson[SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, January 19, 1999 1:23:34 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Y2k issue
> Auto forwarded by a Rule
>
Hi All,
Found this problem with Delphi 2 and Delphi 3 ...
Using a DBEdit or DBGrid to edit a date field, if you enter a year of '00',
then it interprets this as meaning 1900. If after the year 2000 you enter
'00' it interprets it as 2000 - i.e. it assumes current century.
So, if in 2000 you edit a date field that refers to 1999 (e.g. change
10/5/99 to 11/5/99), then the year value will change to 2099!
I imagine I'm not the first to come across this, but what is the general
consensus on handling this? I've figured out a work around (other than
going to 4 digit years) that involves a minor VCL tweak, but am curious to
see what others have to say on this, and related, issues.
Terry
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz