String date = "2017-09-19 14:40:01"; String response = date.replaceAll("[[\s-:punct:]]","");
JAVA时间字符串去空格、冒号和横杠
最新推荐文章于 2023-12-08 14:48:35 发布
String date = "2017-09-19 14:40:01"; String response = date.replaceAll("[[\s-:punct:]]","");
2361
2430

被折叠的 条评论
为什么被折叠?