procedure TForm1.FormCreate(Sender: TObject); Var str:string; begin str := TimeToStr(Time); label1.Caption:=str; end;