determine if “24-hour clock” setting is set

后端 未结 4 1653
野性不改
野性不改 2020-12-11 07:40

What\'s the best way to determine if the user has set the \"24-hour clock\" setting to true in Settings-Date+Time on the Windows Phone ?

Can I get this information t

4条回答
  •  一个人的身影
    2020-12-11 08:24

    The DateTimeFormatInfo.CurrentInfo.ShortTimePattern way of getting the hour is tied to the culture, and not to the option showing whether 24-hour time is enabled or not. So you will get h:mm tt for English (United States) and HH:mm for German (Germany).

    At this moment, you cannot get this system setting.

提交回复
热议问题