title: String to Date not formatted correctly
body: <p>I am trying to do a simple String to Date conversion in Java. I am skimming the date off some logs and need to convert it to a date to do some processing. A date coming through will look like this:</p>
  
  <pre><code>2012-09-07 19:53:33
  </code></pre>
  
  <p>In my code when I try to convert this into a Date object I get a completely different date. My code looks like this:</p>
  
  <pre><code>String taskStart = "2012-09-07 19:53:33";  
  String dateFormat = "yyyy-MM-dd hh:MM:ss";
  SimpleDateFormat dateFormat=new SimpleDateFormat(format);
  Date taskStartDate = dateFormat.parse(taskStart); 
  </code></pre>
  
  <p>The output I get is this:</p>
  
  <pre><code>Sat May 07 19:00:27 PDT 2016
  </code></pre>
  
  <p>How can I just simply convert my original date to the correct format??</p>