String date = “2020-05-27 15:58:11”;
String time= date.replaceAll("[[\s-:punct:\s_:]]","");
Java去掉字符串中的横杠,冒号,空格
猜你喜欢
转载自blog.csdn.net/weixin_44413260/article/details/106383773
今日推荐
周排行