CEST日期格式转换为 年月日时分秒
生活随笔
收集整理的這篇文章主要介紹了
CEST日期格式转换为 年月日时分秒
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
String datestring =“Wed Oct 16 00:00:00 CEST 2013”;
//日期格式化
DateFormat formate1 = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);
DateFormat formate2 = new SimpleDateFormat(“EEE MMM dd HH:mm:ss zzz yyyy”,Locale.ENGLISH);
Date date = formate2.parse(datestring);
String dateString = formate1.format(date);
ws.setCreatetime2(dateString);
總結(jié)
以上是生活随笔為你收集整理的CEST日期格式转换为 年月日时分秒的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mybatis-plus的查,增,删
- 下一篇: 明翰英语教学系列之雅思综合篇V1.9(持