String date = "2011-01-12 26:12:12";
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String result = format.parse(date);
本意是让这个date不合法的,因为小时大于24, 但结果是合法的, 日期自动加1, 返回2011-01-13 02:12:12
试过将format.setLenient()设为true/false, 都不管用
any suggestion?