![]() |
Format von Now
Hallo DP,
Ich formatiere so die Zeit:
Delphi-Quellcode:
Nun bekomme ich es so formatiert:
Label1.Caption := TimeToStr(Now);
Code:
Ich möchte es aber so formatiert:
12:01:30
Code:
Wie kann ich das jetzt so formatieren.
12:01
Und: Datum formatiere ich so:
Delphi-Quellcode:
Wie bekomme ich so eine Formatierung hin:
Label1.Caption := DateToStr(Now);
Code:
Wäre nett, wenn ihr mir helfen könnt.
Montag, 01. Juni
|
DP-Maintenance
Dieses Thema wurde von "Sharky" von "Multimedia" nach "Object-Pascal / Delphi-Language" verschoben.
Ist hier besser aufgehoben. |
Re: Format von Now
|
Re: Format von Now
![]() ![]() Zitat:
|
Re: Format von Now
Hat geklappt, danke
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:35 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 by Thomas Breitkreuz