时间处理不同的国家有不同的时间格式:Locale currentLocale Locale.getDefault ()//获得当地的地区Date
时间处理
不同的国家有不同的时间格式:
Locale currentLocale = Locale.getDefault ();
//获得当地的地区
DateFormat dateFormatter = DateFormat.getDateInstance (
DateFormat.DEFAULT, currentLocale);
Date today = new Date ();
String todayStr = dateFormatter.format (today);
