[fpc-pascal] Is TryStrToDate works wrong?
Michael Van Canneyt
michael at freepascal.org
Sat Jan 4 20:44:39 CET 2020
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.
More information about the fpc-pascal
mailing list