Dateformat for ZQuery.Params
Posted: 11.03.2021, 14:47
I would like to pass the date in the format DD.MM.YYYY as a parameter to ZQuery.
Where and how do I have to set the format for the date?
I've tried the source code ...
GetFormatSettings;
FormatSettings.ShortDateFormat:='dd.mm.yyyy';
... but in unit "ZSysUtils" in function
TryPCharToDate(P: PAnsiChar; Len: Cardinal; const FormatSettings: TZFormatSettings; var Date: TZDate): Boolean;
FormatSettings.DateFormat stayed at "YYYYMMDD"
OR
QU.SQL.Text:='set language "german"';
QU.ExecSql;
without effect :-(
Norbert
Where and how do I have to set the format for the date?
I've tried the source code ...
GetFormatSettings;
FormatSettings.ShortDateFormat:='dd.mm.yyyy';
... but in unit "ZSysUtils" in function
TryPCharToDate(P: PAnsiChar; Len: Cardinal; const FormatSettings: TZFormatSettings; var Date: TZDate): Boolean;
FormatSettings.DateFormat stayed at "YYYYMMDD"
OR
QU.SQL.Text:='set language "german"';
QU.ExecSql;
without effect :-(
Norbert