How do I get date and time in the same format from database using gettimestamp() in Java
<p>In my database, I have value set as <code>9/28/2010 11:30:00 PM</code>.</p>

<p>Now I am making use of <code>dataResultSet.getTimestamp(3)</code> which gives me a value as <code>2010-09-28 23:30:00.0</code>. I want my result to be same as that of database values.i.e, I want the time to be <code>11:30</code>.</p>

<p>What could be solution for this?  Can anyone help me with this?  </p>

<p>Thanks in Advance.</p>
