[fpc-pascal] Is TryStrToDate works wrong?
Michael Van Canneyt
michael at freepascal.org
Sat Jan 4 18:14:20 CET 2020
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/docs-html/rtl/sysutils/strtodate.html
Michael.
More information about the fpc-pascal
mailing list