title: SimpleDateFormat parse for DTG format
body: <p>I am really confused with the SimpleDateFormat object. Here is the code :</p>
  
  <pre><code>SimpleDateFormat formatter = new SimpleDateFormat("DDHHmm MMM yy", Locale.ENGLISH);
  
  String dateString = "312230 MAR 10";
  try 
  {
      Date date = (Date)formatter.parse(dateString);
      System.out.println("Original string: " + dateString);
      System.out.println("Parsed date    : " + date.toString());
  }
  catch (ParseException e) 
  {
      System.out.println("ERROR: could not parse date in string \"" +
                  dateString + "\"");
  }
  </code></pre>
  
  <p>and this is the output :</p>
  
  <pre><code>Original string: 312230 MAR 10
  Parsed date    : Sun Jan 31 22:30:00 EST 2010
  </code></pre>
  
  <p>I really expected the output to be </p>
  
  <pre><code>Parsed date    : Wed Mar 31 22:30:00 EST 2010
  </code></pre>
  
  <p>Can someone please point out what I am doing wrong? It would be deeply appreciated. I am using java 1.6_27.</p>