title: Convert String to java.util.Date
body: <p>I am storing the dates in a SQLite database in this format:</p>
  
  <pre><code>d-MMM-yyyy,HH:mm:ss aaa
  </code></pre>
  
  <p>When I retrieve the date with that format I am get every thing fine
  except the hour.  The hour is always <code>00</code>. Here is my output:</p>
  
  <pre><code>String date---&gt;29-Apr-2010,13:00:14 PM
  After convrting Date---&gt;1272479414000--Thu Apr 29 00:00:14 GMT+05:30 2010
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>    Date lScheduledDate = CalendarObj.getTime();
      DateFormat formatter = new SimpleDateFormat("d-MMM-yyyy,HH:mm:ss aaa");
      SomeClassObj.setTime(formatter.format(lScheduledDate));
  
      String lNextDate = SomeClassObj.getTime();
      DateFormat lFormatter = new SimpleDateFormat("d-MMM-yyyy,HH:mm:ss aaa");
      Date lNextDate = (Date)lFormatter.parse(lNextDate);
      System.out.println("output here"+lNextDate);
  </code></pre>
  
  <p>What am I doing wrong?</p>