小编Akh*_*han的帖子

如何在 android 中将 Thu Dec 17 15:37:43 GMT+05:30 2015 字符串转换为日期

SimpleDateFormat format =new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.ENGLISH);
format.setTimeZone(TimeZone.getTimeZone("GMT+05:30"));
try {
    long diff2=format.parse(accidentReports.getAccidentDate());
}
Run Code Online (Sandbox Code Playgroud)

获取此输出 :: Thu Dec 17 15:37:43 GMT+05:30 5

android

-1
推荐指数
2
解决办法
7801
查看次数

标签 统计

android ×1