title: Java string to date conversion
body: <p>What is the best way to convert a <code>String</code> in the format 'January 2, 2010' to a <code>Date</code> in Java?</p>
  
  <p>Ultimately, I want to break out the month, the day, and the year as integers so that I can use</p>
  
  <pre><code>Date date = new Date();
  date.setMonth()..
  date.setYear()..
  date.setDay()..
  date.setlong currentTime = date.getTime();
  </code></pre>
  
  <p>to convert the date into time.</p>