title: Java: convert a time from today to a timestamp
body: <p>I am using Java 6, and I have a time from the current date as a string, like this: <code>14:21:16</code>, and I need to convert this to a <a href="http://download.oracle.com/javase/6/docs/api/java/sql/Timestamp.html" rel="noreferrer"><code>Timestamp</code> object</a> to store in a database.</p>
  
  <p>However there seems to be no good way to get a Timestamp from this. <a href="http://download.oracle.com/javase/6/docs/api/java/sql/Timestamp.html#valueOf%28java.lang.String%29" rel="noreferrer"><code>Timestamp.valueOf(String)</code></a> is quite close, but requires a date. Is there a good way to make a Timestamp object from such a string?</p>