title: Java SimpleDateFormat decrementing date by one day
body: <p>I am trying to reformat a date string using sdf. SDF is decrementing the date by a day. Pointers would be helpful.</p>
  
  <p>java version "1.8.0_31"
  Input:      ChangeDateStringFormat("10-Mar-2015");</p>
  
  <p>Code: </p>
  
  <pre><code>public static String ChangeDateStringFormat (String Input) throws InterruptedException 
  {           
      System.out.print("Input Date inside ChangeDateStringFormat : " + Input );
  
      SimpleDateFormat sdf = new SimpleDateFormat("MMM-dd-yyyy");
      sdf.setTimeZone(TimeZone.getTimeZone("MST"));
  
      System.out.print(" || Output Date inside ChangeDateStringFormat : " +  sdf.format(new Date(Input)) + "\n");
      return sdf.format(new Date(Input));
  }
  </code></pre>
  
  <p>Output Actual:</p>
  
  <p>Input Date inside ChangeDateStringFormat : 10-Mar-2015 || Output Date inside ChangeDateStringFormat : Mar-09-2015</p>
  
  <p>Output I was Expecting :</p>
  
  <p>Input Date inside ChangeDateStringFormat : 10-Mar-2015 || Output Date inside ChangeDateStringFormat : Mar-10-2015</p>