title: How to convert a String to a Date using SimpleDateFormat?
body: <p>I have this code snippet:</p>
  
  <pre><code>DateFormat formatter1;
  formatter1 = new SimpleDateFormat("mm/DD/yyyy");
  System.out.println((Date)formatter1.parse("08/16/2011"));
  </code></pre>
  
  <p>When I run this, I get this as the output:</p>
  
  <pre><code>Sun Jan 16 00:10:00 IST 2011
  </code></pre>
  
  <p>I expected:</p>
  
  <pre><code>Tue Aug 16 "Whatever Time" IST 2011
  </code></pre>
  
  <p>I mean to say I am not getting the month as expected. What is the mistake?</p>