title: What is the correct way to go from LocalDate to java.sql.Date
body: <p>I have a <code>LocalDate</code> that I'm trying to convert to a <code>java.sql.Date</code> to store it in a Date field in the DB. My problem is that when I convert it to a <code>java.sql.Date</code> it is one day behind due to the machine I'm running on being in EST. I setup <code>Joda.DateTime</code> to be in UTC, and creating the <code>java.sql.Date</code> via using the millis constructor. I'm including the output of the debug watches so you can see what the different values are:</p>
  
  <pre><code>item.getDate().toDateTimeAtStartOfDay() = {org.joda.time.DateTime@6079}"2013-09-25T00:00:00.000Z"
  item.getDate().toDateTimeAtStartOfDay().getMillis() = 1380067200000
  new java.sql.Date(item.getDate().toDateTimeAtStartOfDay().getMillis()) = {java.sql.Date@6082}"2013-09-24"
  item.getDate().getLocalMillis() = 1380067200000
  new java.sql.Date(item.getDate().getLocalMillis()) = {java.sql.Date@6083}"2013-09-24"
  new java.util.Date(item.getDate().getLocalMillis()) = {java.util.Date@6103}"Tue Sep 24 20:00:00 EDT 2013"
  </code></pre>
  
  <p>From the <code>java.util.Date</code> creation I'm assuming it is because my machine I'm testing on is in EST, and the LocalDate is in UTC, but I'm not sure what the correct way to fix this is. I realize I could get the local timezone and add that to the millis, but that seems like a hacky fix. Is there a proper way to do this that I'm just missing?</p>
  
  <hr>
  
  <p>Update with the millis for the <code>java.util.Date</code></p>
  
  <pre><code>new java.util.Date(item.getDate().getLocalMillis()).getTime() = 1380153600000
  item.getDate().toDateTimeAtStartOfDay().getMillis() = 1380153600000
  item.getDate() = {org.joda.time.LocalDate@5812}"2013-09-26"
  new java.sql.Date(item.getDate().getLocalMillis()).getTime() = 1380153600000
  new java.util.Date(item.getDate().getLocalMillis()) = {java.util.Date@5842}"Wed Sep 25 20:00:00 EDT 2013"
  new java.util.Date(item.getDate().getLocalMillis()).getTime() = 1380153600000
  </code></pre>