Mega Code Archive

 
Categories / Delphi / Forms
 

How to check if the user uses 24 hour format

Title: How to check if the user uses 24 hour format function Is24HourTimeFormat: Boolean; var DefaultLCID: LCID; begin DefaultLCID := GetThreadLocale; Result := 0 StrToIntDef(GetLocaleStr(DefaultLCID, LOCALE_ITIME,'0'), 0); end;