I try to parse time formating string ,now when I parse string \"2014-01-07 95:25:37\" , it return a date ,not throw ParseException . who know how to let it throw ParseExcept
Use setLenient to validate the input date String
String
ft.setLenient(false);