0

Hi,
Does anybody know how can I return the time format from the system regional settings ?
I need something like "hh mm ss" returned ( or whatever the current system time format is) to pass it as argument for FormatDateTime() function along with a given time;
I`m using Delphi 6.
Thanks.

3
Contributors
3
Replies
5
Views
8 Years
Discussion Span
Last Post by claudiu_is
0

Isnt there a ShortTimeFormat global variable that defaults to the regional settings on the executing machine which you can then use or override?

0

Thank you for your sugestions, but I`ve choosed another solution:

GetLocaleStr(GetThreadLocale(), LOCALE_STIMEFORMAT, '');

This returns "hh mm ss" or whatever the string timeformat from regional settings is.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.