> ---------- > From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, January 19, 1999 3:22:57 PM > To: Multiple recipients of list delphi > Subject: Re: [DUG]: Y2k issue > Auto forwarded by a Rule > > > Make the users get used to 4 digit years. I've been using 4 digit years sinze I started programming over 10 years ago and I've never had a complaint (or at least a complaint that Ive taken any notice off!) Terry Johnson <[EMAIL PROTECTED]> on 19/01/99 12:23:34 Please respond to [EMAIL PROTECTED] To: Multiple recipients of list delphi <[EMAIL PROTECTED]> cc: (bcc: Peter Jones/Logistics&Information Technology/Christchurch/Foodstuffs) Subject: [DUG]: Y2k issue 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 --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz