String response = date.replaceAll("[[\\s-:punct:]]","");

 

转:https://blog.csdn.net/sswh5123/article/details/78029839

相关文章: