`
kinglun
  • 浏览: 41504 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

时间处理

    博客分类:
  • java
阅读更多
不同的国家有不同的时间格式:
Locale currentLocale = Locale.getDefault ();
//获得当地的地区
DateFormat dateFormatter = DateFormat.getDateInstance (
DateFormat.DEFAULT, currentLocale);
Date today = new Date ();
String todayStr = dateFormatter.format (today);
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics