Problem with Date Format in Java
<p>I have a problem with this code  </p>

<pre><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);
}
</code></pre>

<p>The output is:<br>
Date=Thu Feb 12 07:<strong>01</strong>:00 EET <strong>2015</strong><br>
What am i doing wrong??</p>
