title: How to convert Java Timestamp to mySQL datetime function
body: <p>My code uses <code>Java.sql.Timestamp</code> to store an update date. I want to take that date and store it into a mySQL datetime object. My problem is that the <code>Java.util.Timestamp</code> returns a date in the format of <strong>2013-12-09 00:00:00.00</strong> but the mySQL colunmn wants the format in <strong>2013-12-09 00:00:00</strong>. So it looks like I need to trim off the .00 of the <code>java.sql.Timestamp</code>.</p>