title: How to get correct date after conversion from String to date
body: <p>I am converting Date from String type Date to Date type Date,using SimpleDateFormat but the
  resulting date I am getting is getting changed.can anyone tell me why its changing
  Also <strong>what should i use to get the correct Date type date from String</strong> and not the changed one as I am getting here.</p>
  
  <pre><code>    Date d = null;
      String startTime="2012-03-17 16:00:00 PM";
      DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss a");
      try {
            d=  sdf.parse(startTime);
           } catch (ParseException e) {}
  
  System.out.println("DD="+d) //printing Sun Mar 18 04:00:00 IST 2012 ? why this 
     //Date enterd was 17 Mar 2012
  </code></pre>