11-11-2020, 01:53 PM
(This post was last modified: 11-11-2020, 01:54 PM by Mikael Nilsson.)
I have problem with DateTime format.
Delphi version is 10.3.3 and IW 15.2.3
In Delphi/Intraweb I do this command that's fails with this error: '2020-11-11 14:22:57.660' is not a valid date and time
wDateTime := strToDateTime(ContinueTime);
wDateTime is a TDateTime
ContinueTime is a string containing the value '2020-11-11 14:22:57.660'
I have also done these settings in ServerController
procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
begin
SysUtils.FormatSettings.ShortDateFormat := 'yyyy-mm-dd';
SysUtils.FormatSettings.ShortTimeFormat := 'hh:nn
s';
SysUtils.FormatSettings.LongTimeFormat := 'hh:nn
s.zzz';
end;
I forgot to mention that this code works in SA buy not as a ISAPI.dll
Delphi version is 10.3.3 and IW 15.2.3
In Delphi/Intraweb I do this command that's fails with this error: '2020-11-11 14:22:57.660' is not a valid date and time
wDateTime := strToDateTime(ContinueTime);
wDateTime is a TDateTime
ContinueTime is a string containing the value '2020-11-11 14:22:57.660'
I have also done these settings in ServerController
procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
begin
SysUtils.FormatSettings.ShortDateFormat := 'yyyy-mm-dd';
SysUtils.FormatSettings.ShortTimeFormat := 'hh:nn

SysUtils.FormatSettings.LongTimeFormat := 'hh:nn

end;
I forgot to mention that this code works in SA buy not as a ISAPI.dll