Einzelnen Beitrag anzeigen

Delphiturbo
(Gast)

n/a Beiträge
 
#1

PC-Datum und Zeit ändern ?

  Alt 15. Mai 2008, 09:33
Hallo
mit dem Code kann ich sie anzeigen
wie kann nun das Datum und die Uhr ändern ?
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
begin
Edit1.Text:=FormatDateTime('dd',now)+ '.' +
                  FormatDateTime('mm',now)+ '.' +
                  FormatDateTime('yy',now)+ ' ' +
                  FormatDateTime('hh',now)+ '.' +
                  FormatDateTime('nn',now)+ '.' +
                  FormatDateTime('ss',now);