【发布时间】:2014-09-22 08:38:11
【问题描述】:
我使用Time.getCurrentTimezone() 来获取当前时区和日期。
我正在获取并格式化它:
private void setDate() {
Time today = new Time(Time.getCurrentTimezone());
today.setToNow();
tvdate2.setText(today.monthDay + "-" + today.month + "-" + today.year);
}
如何根据系统设置格式化日期? 我没能通过 SimpleDateFormat 完成它...
【问题讨论】:
标签: android date date-format