Figured it out. You can use the following to get the date format:
String value = Settings.System.getString(mCtx.getContentResolver(), Settings.System.DATE_FORMAT); And I think you can use Settings.System.TIME_12_24 to get if the time is in 24hr format or not. Regards, Donal On Sep 18, 1:35 pm, Donal <[email protected]> wrote: > Did you have any luck with this? I am trying to get the full system > date/timeformat. > > Regards, > Don > > On Sep 4, 2:26 am, feeling3_4 <[email protected]> wrote: > > > I have tried DateFormat.is24HourFormat(), but this give me the > > javasystemlocal setting, not the user settings. user can choose "Use 24- > > hourformat" or not, and not care about what the javasystemlocal > > setting. > > > On Sep 3, 1:29 am, Jack Ha <[email protected]> wrote: > > > > Try DateFormat.is24HourFormat() > > > > -- > > > Jack Ha > > > Open Source Development Center > > > ・T・ ・ ・Mobile・ stick together > > > The coverage you need at the price you want > > > > The views, opinions and statements in this email are those of > > > the author solely in their individual capacity, and do not > > > necessarily represent those of T-Mobile USA, Inc. > > > > On Sep 1, 10:13 pm,feeling3_4<[email protected]> wrote: > > > > > Hi, all > > > > > in the android phone, click "settings" and then goto "date&time > > > > settings" , user can choose "Use 24-hourformat" or not. My question > > > > is how to find out this setting through api? > > > > > any idea? thank you. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

