title: Inserting a string into a datetime mysql column with java.
body: <p>Will MySQL allow me to insert a properly formatted string into a datatime field in my MySQL database?</p>
  
  <p>I am parsing a file, combining dates of format yyyyMMdd and times of format HHmmss, and planning to format them into a string like:</p>
  
  <pre><code>     "yyyy-MM-dd HH:mm:ss"
  </code></pre>
  
  <p>I would like to then insert this string into my datetime field (which has the same formatting as the example above" with a insert query.</p>
  
  <p>If this isn't the proper way to handle my problem, what method should I be using? After looking at the MySQL documentation I got the impression that I could do this as long as the formatting was correct. Working with Java's Calendar and Date classes seemed to only have headaches in store for me.</p>