AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi GetLocaleFormatSettings - Uhrzeit im 24 Stunden System
Thema durchsuchen
Ansicht
Themen-Optionen

GetLocaleFormatSettings - Uhrzeit im 24 Stunden System

Ein Thema von Andreas L. · begonnen am 18. Apr 2009 · letzter Beitrag vom 22. Apr 2009
Antwort Antwort
Andreas L.
(Gast)

n/a Beiträge
 
#1

GetLocaleFormatSettings - Uhrzeit im 24 Stunden System

  Alt 18. Apr 2009, 00:02
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
  Mit Zitat antworten Zitat
Andreas L.
(Gast)

n/a Beiträge
 
#2

Re: GetLocaleFormatSettings - Uhrzeit im 24 Stunden System

  Alt 22. Apr 2009, 16:57
*push*
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:08 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz