On Mon, 24 Apr 2023, Thomas Kurz via fpc-pascal wrote:
I always use ScanDateTime for such purposes: https://www.freepascal.org/docs-html/rtl/dateutils/scandatetime.html You can explicitly define the pattern.
Correct. This is the only correct way to do this. StrToDateTime is very limited in what it accepts. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal