I have a problem with this code
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);
}
The output is:
Date=Thu Feb 12 07:01:00 EET 2015
What am i doing wrong??