title: Convert days from epoch to date
body: <p>I want to convert number of days since epoch to a date. Let's say I have the following <code>Timestamp in days: 17749</code> then it should be converted to <code>Monday Aug 06 2018</code>.</p>
  
  <p>I am trying using the following code:</p>
  
  <pre><code>Date date = new SimpleDateFormat("D").parse(String.valueOf("17749"));
  System.out.println(date);
  </code></pre>
  
  <p>But I am getting <code>Sun Aug 05 00:00:00 PKT 2018</code>. The date is one day earlier than what it should be and how can I convert it to yyyy-mm-dd?</p>