If you have to use the string format that you specified or if you want
your implementation to work regardless of regional settings theneither
chage the date format as already suggested or do not use the StrToDate
function.  Instead get the month, year and day into separate variables
then use the EncodeDate function.

regards tony goodrich

> -----Original Message-----
> From: Alex Kouznetsov [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, 9 July 1999 13:59
> To:   Multiple recipients of list delphi
> Subject:      [DUG]:  Y2K Delphi bug ?
> 
> StrToDate ('29/02/2000')
>  
> Doing this in Delphi1 or Delphi4 raises exception : "29/02/2000" is
> not a valid date.
>  
> Is it a known thing ? Any workarounds ?
>  
> Alex
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to