900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > CEST日期格式转换为 年月日时分秒

CEST日期格式转换为 年月日时分秒

时间:2023-01-12 03:00:27

相关推荐

CEST日期格式转换为 年月日时分秒

String datestring =“Wed Oct 16 00:00:00 CEST ”;

//日期格式化

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);

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。