Autor Beitrag
Melanie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Mo 24.03.03 18:53 
Wie bekommt man den ganzzahligen Wert von TDateTime
z.b. 35065 =1.1.1996. Wie kann man den ersten Wert ermitteln (35065) ?


MfG Melly
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Mo 24.03.03 19:02 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
var
 datum: TDateTime;
begin
 datum := Now;
 ShowMessage(FloatToStr(Trunc(datum)));
end;
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Mo 24.03.03 19:02 
Hallo

trunc liefert dir einen integerwert mit allem, was vorm Komma steht.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Melanie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Mo 24.03.03 19:08 
Titel: Hallo
Danke Euch ,das ging aber schnell.

MfG Melly :idea: