title: Convert String to java.sql.Date and java.sql.Time
body: <p>If I have a method like this:</p>
  
  <pre><code>public static String convertDateTimeToString(DateTime dt) {
      return dt.getDate() + " " + dt.getTime();
  }
  </code></pre>
  
  <p>Which takes a <code>DateTime</code> object of my own which contains a <code>java.sql.Date</code> and a <code>java.sql.Time</code>, what is the best way of reversing the process so that I can substring a <code>java.sql.Date</code> and a <code>java.sql.Time</code> from a String?</p>
  
  <p>Or if <code>DateTime dt</code> is a JodaTime <code>DateTime</code> object?</p>
  
  <p>If this can be done without reference to <code>java.util.Date</code>.</p>