Jest to spowodowane tym, że format daty/czasu w kodzie jest niezgodny z formatem daty/czasu dla ustawień regionalnych.
Od docs (D2009):
The S parameter must use the current locale's date/time format. In the US, this is commonly MM/DD/YY HH:MM:SS format. Specifying AM or PM as part of the time is optional, as are the seconds. Use 24-hour time (7:45 PM is entered as 19:45, for example) if AM or PM is not specified.
Jeśli używasz starszej Delphi, StrToDateTime może wymagać określonego formatu. Od docs (D5 w tym przypadku):
The S parameter must be in the MM/DD/YY HH:MM:SS format. Specifying AM or PM as part of the time is optional, as are the seconds. Use 24-hour time (7:45 PM is entered as 19:45, for example) if AM or PM is not specified.
Wygląda na to zagadnienie locale: To ważna data UK ale nie data amerykańska, na przykład. –
Ostrzegałbym o funkcji "StrToDate [Time]" [s]: * "Uwaga, ta funkcja zależy od ustawień narodowych i może się nie udać na innych komputerach, dlatego nigdy nie powinieneś używać ciągów do wprowadzania, edycji lub przechowuj datę, nigdy! "*. –