Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Algorithmen, Datenstrukturen und Klassendesign (https://www.delphipraxis.net/78-algorithmen-datenstrukturen-und-klassendesign/)
-   -   Delphi Datumsangabe -> TDateTime (https://www.delphipraxis.net/204112-datumsangabe-tdatetime.html)

Blo 24. Apr 2020 13:40

Datumsangabe -> TDateTime
 
Hallo!

Von einem Server bekomme ich die folgenden beiden Datumsangaben:
1. "2120-12-31T22:59:59Z"
2. "Wed Aug 24 12:57:09 UTC 2022"

Das 1. Format läßt sich einfach mit "ISO8601ToDate" aus der Unit System.DateUtils nach TDateTime konvertieren.

Für das 2. Format habe ich nichts gefunden.

Kennt jemand eine Möglichkeit das 2. Datumsformat nach TDateTime zu konvertieren?

Delphi.Narium 24. Apr 2020 18:05

AW: Datumsangabe -> TDateTime
 
Bitte mal schauen, ob das was brauchbares bei ist:

https://stackoverflow.com/questions/...st-yyyy-format

https://www.google.com/search?client...elphi&oq=&aqs=

http://www.delphibasics.co.uk/RTL.as...formatdatetime

https://www.codeproject.com/Question...to-date-format

http://delphibasics.50webs.com/Metho...ePatterns.html

http://quabr.com/52062558/parsing-tw...at-date-as-utc


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz