![]() |
Datum in Edit-Feld
Hallo!
Ich habe schon alles versucht, das aktuelle Datum (dd.mm.yyyy) in ein Edit-Feld zu bekommen. Aber trotz Delphi-Hilfe klappt dies irgendwie nicht... Kann mir jemand helfen? Ich weiß, nur, dass ich dafür ein Timer benötige... |
Re: Datum in Edit-Feld
Delphi-Quellcode:
Edit1.Text := DateToStr(Now);
|
Re: Datum in Edit-Feld
Cool, THX!
|
Re: Datum in Edit-Feld
Oder
Delphi-Quellcode:
Weitere Format gibts in der OH einfach gucken
Edit1.Text := FormatDateTime('mm/dd/yyyy', now);
|
Re: Datum in Edit-Feld
Zitat:
Mit dem Code von Matze ist nicht garantiert das Du das Datum in dem Format bekommst wie Du es möchtest. Viele (aber noch zu wenige) haben ihre Datumsanzeige im Rechner auf das offizielle Format (yyyy-mm-dd) umgestellt. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:30 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz