Thema: Delphi Format von Now

Einzelnen Beitrag anzeigen

Benutzerbild von Muellermilchtrinker
Muellermilchtrinker

Registriert seit: 1. Aug 2009
447 Beiträge
 
Delphi 2009 Professional
 
#1

Format von Now

  Alt 29. Mai 2010, 17:26
Hallo DP,

Ich formatiere so die Zeit:
Label1.Caption := TimeToStr(Now); Nun bekomme ich es so formatiert:
Code:
12:01:30
Ich möchte es aber so formatiert:
Code:
12:01
Wie kann ich das jetzt so formatieren.

Und:

Datum formatiere ich so:
Label1.Caption := DateToStr(Now); Wie bekomme ich so eine Formatierung hin:
Code:
Montag, 01. Juni
Wäre nett, wenn ihr mir helfen könnt.
Chuck Norris doesn't need backups. He just uploads his files and lets the world mirror them.
  Mit Zitat antworten Zitat