2016-10-27 10:50发布
怎么把20161011转化为2016-10-11
String time = "20161011";怎么转换成:String time1 = "2016-10-11";
String x = "20161111";System.out.println(x.replaceAll("(d{4})(d{2})(d{2})", "$1-$2-$3"));
最多设置5个标签!
String x = "20161111";
System.out.println(x.replaceAll("(d{4})(d{2})(d{2})", "$1-$2-$3"));
一周热门 更多>