AW: TdateEdit anpassen
13. Jun 2015, 13:36
So...
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
begin
DateEdit1.Date := Now;
// Edit1.text := FormatDateTime('mm.yyyy', DateEdit1.Date);
DateEdit1.Text:= FormatDateTime('mm.yyyy', DateEdit1.Date);
end;
Oder so:
Delphi-Quellcode:
procedure TForm1.DateEdit1Change(Sender: TObject);
begin
DateEdit1.Text:= FormatDateTime('mm.yyyy', DateEdit1.Date);
end;
oder: HideDateTimeParts: TDateTimeParts
http://wiki.freepascal.org/DateTimeCtrls_Package
http://wiki.freepascal.org/ZVDateTim...wed%3a_Boolean
Geändert von hathor (13. Jun 2015 um 16:24 Uhr)
|