我有这个代码的问题
public static void main(String[] args) throws IOException, ParseException {
String strDate = "2011-01-12 07:50:00";
DateFormat formatter = new SimpleDateFormat("yyyy-mm-dd H:M:S");
Date date = formatter.parse(strDate);
System.out.println("Date="+date);
}
Run Code Online (Sandbox Code Playgroud)
输出为:
日期=周四07年2月12日:01:00 EET 2015年
我在做什么错?
java ×1