title: Converting a date string to a DateTime object using Joda Time library
body: <p>I have a date as a string in the following format <code>"04/02/2011 20:27:05"</code>. I am using Joda-Time library and would like to convert it to <code>DateTime</code> object. I did:</p>
  
  <pre><code>DateTime dt = new DateTime("04/02/2011 20:27:05")
  </code></pre>
  
  <p>But I'm getting the following error :</p>
  
  <pre><code>Invalid format: "04/02/2011 14:42:17" is malformed at "/02/2011 14:42:17"
  </code></pre>
  
  <p>How to convert the above date to a <code>DateTime</code> object?</p>