Hi,
ich hole mir mit GetLocaleFormatSettings das Datums und Zeitformat für einen DateTimePicker:
Delphi-Quellcode:
var
DTFormat: TFormatSettings;
DTFormatStr: String;
begin
GetLocaleFormatSettings(GetUserDefaultLCID, DTFormat);
DTFormatStr := DTFormat.ShortDateFormat + ' ' + DTFormat.LongTimeFormat;
frmEditUnixTimeStamp.dtpValue.Format := DTFormatStr;
...
Leider wird mir die Uhrzeit aber im 12 Stunden System angezeigt und nicht wie in der Systemsteuerung eingestellt im 24 Stunden System. Woran könnte das liegen? Gibt es noch eine andere Möglichkeit einen Format-String zu bekommen?
Nächtliche Grüße,
Andreas