title: Parse Date String to Some Java Object
body: <p>I am working in a project that reads files and processes data. There I got to work with dates for example:</p>
  
  <ol>
  <li>2012-01-10 23:13:26</li>
  <li>January 13, 2012</li>
  </ol>
  
  <p>I found the package Joda, kinda interesting package but don't know if it is the easiest around.</p>
  
  <p>I was able to parse the first example to a DateTime object (Joda) reg-ex and String manipulation. (Ex: by replacing the space by '-' and passing it to constructor.</p>
  
  <pre><code>new DateTime("2012-01-10 23:13:26".replace(' ', '-'))
  </code></pre>
  
  <p>I guess it worked, but the problem is with the second format. How can I use such an input to extract a an object, preferably a Joda object. I sure can write a function to change the format to what Joda supports, but was wondering if there would be some other way (even some native Java library) to do it.</p>
  
  <p>If there are any thing better than Joda out there, please let me know it as well.</p>
  
  <p>Thank you.</p>