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.yyyy',DT));
results in
/True//
/
/01.01.2020/
Not what I exspected.
But exactly what it is supposed to return. It fills missing numbers with the
current year/month. So, 1 jan 2020.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal