SimpleDateFormat解析的时候字符串过长问题
竟然不会报错;
try { SimpleDateFormat dateFormatFrom = new SimpleDateFormat("yyyyMMddHHmmss"); String dateStr = "2015080910400000"; Date parse = dateFormatFrom.parse(dateStr); System.out.println(parse); } catch (Exception e) { e.printStackTrace(); }