<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 04.01.20 um 18:14 schrieb Michael
      Van Canneyt:<br>
    </div>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.21.2001041813130.29928@home">
      <br>
      <br>
      On Sat, 4 Jan 2020, Gabor Boros wrote:
      <br>
      <br>
      <blockquote type="cite">Hi All,
        <br>
        <br>
        var
        <br>
          DT:TDateTime;
        <br>
        <br>
        begin
        <br>
          Writeln(BoolToStr(TryStrToDate('1',DT),True));
        <br>
        <br>
        <br>
        The result of above code is "True" with FPC and "False" with
        Delphi.
        <br>
      </blockquote>
      <br>
      This is normal. FPC accepts more than Delphi, see the
      documentation:
      <br>
      <br>
      <a class="moz-txt-link-freetext" href="https://www.freepascal.org/docs-html/rtl/sysutils/strtodate.html">https://www.freepascal.org/docs-html/rtl/sysutils/strtodate.html</a>
      <br>
      <br>
      Michael.
      <br>
      _______________________________________________
      <br>
      fpc-pascal maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
      <br>
    </blockquote>
    <p><br>
    </p>
    <p>Hi!</p>
    <p><br>
    </p>
    <p>The result is true, but the date is nonsense:</p>
    <p>ShowMessage(BoolToStr(TryStrToDate('1',DT),True) + lineEnding +
      formatdatetime('dd.mm.yyyy',DT)); <br>
    </p>
    <p>results in</p>
    <p><i>True</i><i><br>
      </i></p>
    <p><i>01.01.2020</i></p>
    <p><br>
    </p>
    <p>Not what I exspected.</p>
    <p>Winni<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>