Re: [fpc-pascal] Is TryStrToDate works wrong?

2020-01-04 Thread Michael Van Canneyt
On Sat, 4 Jan 2020, Winfried Bartnick wrote: The result is true, but the date is nonsense: ShowMessage(BoolToStr(TryStrToDate('1',DT),True) + lineEnding + formatdatetime('dd.mm.',DT)); results in /True// / /01.01.2020/ Not what I exspected. But exactly what it is supposed to ret

Re: [fpc-pascal] Is TryStrToDate works wrong?

2020-01-04 Thread Winfried Bartnick
Am 04.01.20 um 18:14 schrieb Michael Van Canneyt: On Sat, 4 Jan 2020, Gabor Boros wrote: Hi All, var   DT:TDateTime; begin   Writeln(BoolToStr(TryStrToDate('1',DT),True)); The result of above code is "True" with FPC and "False" with Delphi. This is normal. FPC accepts more than Delphi,

Re: [fpc-pascal] Is TryStrToDate works wrong?

2020-01-04 Thread Michael Van Canneyt
On Sat, 4 Jan 2020, Gabor Boros wrote: Hi All, var DT:TDateTime; begin Writeln(BoolToStr(TryStrToDate('1',DT),True)); The result of above code is "True" with FPC and "False" with Delphi. This is normal. FPC accepts more than Delphi, see the documentation: https://www.freepascal.org/

[fpc-pascal] Is TryStrToDate works wrong?

2020-01-04 Thread Gabor Boros
Hi All, var DT:TDateTime; begin Writeln(BoolToStr(TryStrToDate('1',DT),True)); The result of above code is "True" with FPC and "False" with Delphi. Gabor ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cg