Einzelnen Beitrag anzeigen

mytbo

Registriert seit: 8. Jan 2007
461 Beiträge
 
#6

AW: DateTime String Format nicht bekannt

  Alt 17. Aug 2023, 18:47
"Mon Jun 26 2023 07:20:48 GMT+0000 (Coordinated Universal Time)"

Kennt das jemand von Euch?
Mit der mORMot Bibliothek so:
Delphi-Quellcode:
uses
  mormot.core.base,
  mormot.core.datetime;

const
  DATE_TIME = 'Mon Jun 26 2023 07:20:48 GMT+0000 (Coordinated Universal Time)';
begin
  var dt: TDateTime;
  if HttpDateToDateTime(DATE_TIME, dt) then
    ShowMessage(DateTimeToStr(dt));
Bis bald...
Thomas
  Mit Zitat antworten Zitat