Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Problem mit Datum im Format YYYYmmdd (https://www.delphipraxis.net/76159-problem-mit-datum-im-format-yyyymmdd.html)

DocBorn 30. Aug 2006 20:21


Problem mit Datum im Format YYYYmmdd
 
Hey,

ich habe gerade die Suche genutzt bin allerdings zu keinem nützlichen Ergebnis gekommen:

Ich bekomme von einer Web-Applikation (die nicht anders kann als sie tut) ein Datum im Format YYYYmmdd zurückgeliefert, also z.B. 20060830 für heute ... ich will das dann in ein TDate umwandeln:

Delphi-Quellcode:
ShortDateFormat := 'yyyymmdd';
FUploadDate := StrToDate('20060830');
funktioniert leider nicht... alternative Vorschläge?

Lg Lars

mkinzler 30. Aug 2006 20:27

Re: Problem mit Datum im Format YYYYmmdd
 
Verwende strToDateDef()

DocBorn 30. Aug 2006 20:39

Re: Problem mit Datum im Format YYYYmmdd
 
hmm in Delphi 5 habe ich vergessen hinzuzuschreiben ... sry

mkinzler 30. Aug 2006 20:39

Re: Problem mit Datum im Format YYYYmmdd
 
Manuell String zerlegen und mit Encodedate manuell erzeugen.

OG Karotte 30. Aug 2006 20:44

Re: Problem mit Datum im Format YYYYmmdd
 
Versuch's doch mal mit dem hier (Unit YclTextDatas glaube ich war es).

Gruß

Stefan

DocBorn 31. Aug 2006 08:07

Re: Problem mit Datum im Format YYYYmmdd
 
hey, super die von dir genannte Unit enthält genau die Funktion, die ich benötige. Dankööö!

Lg Lars


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:09 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