title: Format java.sql.Timestamp into a String
body: <p>Is it possible to convert/format <code>java.sql.Timestmap</code> into a String that has the following format:</p>
  
  <blockquote>
    <p>yyyyMMdd</p>
  </blockquote>
  
  <p>I know that doing it with a <code>String</code> is fairly simple e.g:</p>
  
  <pre><code>String dateString = "2016-02-03 00:00:00.0";
  Date date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S").parse(dateString);
  String formattedDate = new SimpleDateFormat("yyyyMMdd").format(date);
  </code></pre>
  
  <p>But, I have to work with the <code>Timestamp</code> object.</p>