您的位置:首页 > 移动开发 > Android开发

How to use the date format that has been setup as default in Settings?

2010-08-27 20:20 701 查看
Question:

 

As you probably know, you can setup date format in the Settings of an Android
device.

In code how do we make sure that we use that format for date display?

 

Answer:

Try
android.text.format.DateFormat

, notably
getDateFormatOrder()


to get the
user's preferred date format.

 

 

Thanks:http://stackoverflow.com/questions/2835425/how-to-use-the-date-format-that-has-been-setup-as-default-in-settings
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  date android user
相关文章推荐