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



BeitragVerfasst: So 14.02.10 20:16 
Ich habe ein Problem:
Ich will ein Programm zur Einsatzprotokollierung im SSD schreiben und möchte das aktuelle Datum ermitteln. Ich wollte Fragen welche Anweisung (wie Gettime bei der Zeit) ich dafür benötige?

Hier mein Quelltext:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.FormCreate(Sender: TObject);
begin
  DateTime := GetTime;
  Zeit := TimetoStr(DateTime);
  Label11.Caption := Zeit;
  //Hier brauche ich noch die Hilfe  
  Datum := DatetoStr(DateTime);
  Label12.Caption := Datum;
end;
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 14.02.10 20:18 
FormatDateTime, Time und Date - sowie Now

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Peter Schmelzer
Hält's aus hier
Beiträge: 16


BDS 2006 Enterprice, XE Enterprice
BeitragVerfasst: Mo 15.02.10 11:20 
ausblenden Delphi-Quelltext
1:
2:
Label12.Caption := DateToStr(Date);
// verwendet das aktuell im System eingetragenen kurze Datumformat


Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt