Loading

SimpleDateFormat解析的时候字符串过长问题

竟然不会报错;

try {
            SimpleDateFormat dateFormatFrom = new SimpleDateFormat("yyyyMMddHHmmss");
            String dateStr = "2015080910400000";
            Date parse = dateFormatFrom.parse(dateStr);
            System.out.println(parse);
        } catch (Exception e) {
            e.printStackTrace();
        }

 

posted @ 2015-08-14 15:58  stono  阅读(372)  评论(0编辑  收藏  举报