我正在使用这个SimpleDateFormat.
SimpleDateFormat dateFormat = new SimpleDateFormat(“yyyy/mm/dd hh:mm:ss.sss”);
its giving this exception.
java.text.ParseException: Unparseable date: “2011-08-19 06:11:03.0”
请告诉我要使用的SimpleDateFormat.谢谢.
我正在使用这个SimpleDateFormat.
SimpleDateFormat dateFormat = new SimpleDateFormat(“yyyy/mm/dd hh:mm:ss.sss”);
its giving this exception.
java.text.ParseException: Unparseable date: “2011-08-19 06:11:03.0”
请告诉我要使用的SimpleDateFormat.谢谢.
“上午/下午(1-12)小时”和“日间小时(0-23)”的小时
见这里:SimpleDateFormat
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); Date date = dateFormat.parse("2011-08-19 06:11:03.0");