title: Get date based on dayCount in java
body: <p>I am using the below code to get date based on day count but its giving me the  wrong output it's giving 15-08 but should be 14-08</p>
  
  <pre><code>Date date1 = new SimpleDateFormat("D", java.util.Locale.getDefault()).parse("227");
  </code></pre>