标签:
//将20150601102701转化为2015-06-01 10:27:01
DateFormat format = new SimpleDateFormat("yyyyMMddHHmmss", Locale.getDefault()); Date dDate = null; try { dDate = format.parse(“20150601102701”); } catch (ParseException e) { e.printStackTrace(); } DateFormat format2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()); String reTime = format2.format(dDate);
标签:
原文地址:http://www.cnblogs.com/hjqjl/p/4543388.html