![]() |
GetLocaleFormatSettings - Uhrzeit im 24 Stunden System
Hi,
ich hole mir mit GetLocaleFormatSettings das Datums und Zeitformat für einen DateTimePicker:
Delphi-Quellcode:
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?
var
DTFormat: TFormatSettings; DTFormatStr: String; begin GetLocaleFormatSettings(GetUserDefaultLCID, DTFormat); DTFormatStr := DTFormat.ShortDateFormat + ' ' + DTFormat.LongTimeFormat; frmEditUnixTimeStamp.dtpValue.Format := DTFormatStr; ... Nächtliche Grüße, Andreas |
Re: GetLocaleFormatSettings - Uhrzeit im 24 Stunden System
*push*
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:52 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