Unparseable date: "2019-03-27"

Unparseable date: "2

 

Unparseable date:

 Unparseable date:

public static void main(String[] args) {
try {
String dateStr="2019-03-27 00:00:00";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd hh:MM:ss");
Date date = sdf.parse(dateStr);
System.out.println(date);
} catch (ParseException e) {
e.printStackTrace();
}
}

 

转载于:https://www.cnblogs.com/null/p/11212683.html

你可能感兴趣的:(java)