84669 人が学習中
152542 人が学習中
20005 人が学習中
5487 人が学習中
7821 人が学習中
359900 人が学習中
3350 人が学習中
180660 人が学習中
48569 人が学習中
18603 人が学習中
40936 人が学習中
1549 人が学習中
1183 人が学習中
32909 人が学習中
怎么把20161011转化为2016-10-11
String time = "20161011";怎么转换成:String time1 = "2016-10-11";
认证0级讲师
String x = "20161111"; System.out.println(x.replaceAll("(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3"));
String date = "20161011"; Date format = new SimpleDateFormat("yyyyMMdd").parse(date); String dd = new SimpleDateFormat("yyyy-MM-dd").format(format); System.out.println(dd);
String x = "20161111";System.out.println(x.replaceAll("(\d{4})(\d{2})(\d{2})", "$1-$2-$3"));
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String x = "20161111";
System.out.println(x.replaceAll("(\d{4})(\d{2})(\d{2})", "$1-$2-$3"));
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");