当前位置:网站首页>Time conversion'2015-04-20t11:12:00.000+0000 '
Time conversion'2015-04-20t11:12:00.000+0000 '
2022-06-13 06:04:00 【lsg_ lsg_ lsg】
public String changeTimeShow(String timeStr){
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
Date result;
try {
result = formatter.parse(timeStr);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sdf.format(result);
} catch (ParseException e) {
e.printStackTrace();
}
return "";
}
边栏推荐
- 【自动化测试】Cypress手册
- Leetcode- longest palindrome string - simple
- Concurrent programming -- countdownlatch combined with thread pool
- Data conversion analysis tool
- Complete USB debugging assistant
- = = relation between int and integer
- Service architecture diagram of Nacos series
- Audio stereo to mono (Audio Dual Channel to mono channel)
- A glimpse of [wechat applet]
- 智能数字资产管理助力企业决胜后疫情时代
猜你喜欢
The Boys x PUBGMOBILE 联动火热来袭!来看最新游戏海报
Shardingsphere JDBC < bind table > avoid join Cartesian product
What happens when the MySQL union index ABC encounters a "comparison operator"?
The reason why the process cannot be shut down after a spark job is executed and the solution
【ONE·Data || 带头双向循环链表简单实现】
Status management --provider
arrayList && linkedList
自我总结ing
Sentinel series introduction to service flow restriction
软件测试——接口常见问题汇总
随机推荐
@The detailed explanation of configurationproperties and the problem that all properties of the entity bean modified by this annotation are null after injection are solved
Concurrent programming -- source code analysis of thread pool
ffmpeg 下载后缀为.m3u8的视频文件
零拷贝技术
安全基线检查脚本—— 筑梦之路
Basic application of sentinel series
= = relation between int and integer
Application virtual directory static resource configuration on tongweb
Leetcode- string addition - simple
Why do so many people hate a-spice
Leetcode minimum absolute difference of binary search tree simple
Working principle of sentinel series (concept)
Leetcode- key formatting - simple
The SQL file of mysql8.0 was imported into version 5.5. There was a pit
CORS request principle
Leetcode- student attendance record i- simple
Leetcode- distribute cookies - simple
自我总结ing
MySQL custom function
Class conflicts caused by tongweb Enterprise Edition and embedded Edition