Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DateTime format
#5
SP?
I have done:
ContinueTime:String;
wDateTime: TDateTime;
fs: TFormatSettings;
begin

fs := TFormatSettings.Create;
fs.DateSeparator := '-';
fs.ShortDateFormat := 'yyyy-mm-dd';
fs.TimeSeparator := ':';
fs.ThousandSeparator := '.';
fs.ShortTimeFormat := 'hh:mmConfuseds.zzz';
fs.LongTimeFormat := 'hh:mmConfuseds.zzz';
ContinueTime:='2020-11-12 15:35:18.760';
wDateTime := strToDateTime(ContinueTime,fs);
and it still abends when I test it in ISAPI and not in SA.
(Skip other users. It's me that are testing the ISAPI.dll)
Reply


Messages In This Thread
DateTime format - by Mikael Nilsson - 11-11-2020, 01:53 PM
RE: DateTime format - by kudzu - 11-11-2020, 06:15 PM
RE: DateTime format - by Mikael Nilsson - 11-12-2020, 09:51 AM
RE: DateTime format - by kudzu - 11-12-2020, 03:48 PM
RE: DateTime format - by Mikael Nilsson - 11-12-2020, 03:58 PM
RE: DateTime format - by kudzu - 11-13-2020, 05:46 PM
RE: DateTime format - by Jose Nilton Pace - 11-13-2020, 06:10 PM
RE: DateTime format - by Mikael Nilsson - 11-16-2020, 03:34 PM
RE: DateTime format - by kudzu - 11-13-2020, 06:49 PM
RE: DateTime format - by Jose Nilton Pace - 11-16-2020, 06:32 PM
RE: DateTime format - by Mikael Nilsson - 11-16-2020, 06:36 PM
RE: DateTime format - by Mikael Nilsson - 11-18-2020, 10:36 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)