title: How to extract date and time from a String Timestamp in java
body: <p>I am getting  date and time as a <code>String</code> <code>TIMESTAMP</code> from MySQL from a server in such a format:</p>
  
  <pre><code>2014-02-15 05:18:08
  </code></pre>
  
  <p>What I want is to extract the Date in <code>DD-MM-YYYY</code> format and the time in <code>HH:MM:SS AM/PM</code> format. Also the timezone of this timestamp is different and I want it in Indian Timezone(IST).</p>
  
  <p>Remember the <code>timestamp</code> is of <code>String</code> datatype.</p>