title: How to convert a String of format yyyymmdd to LocalDate in JodaTime
body: <p>I have a String in the form "20140518". How to convert it into LocalDate object </p>
  
  <p>I tried this </p>
  
  <pre><code>this.todayDate = new LocalDate(val);
  System.out.println(todayDate.toString("yyyy-mm-dd"))
  </code></pre>
  
  <p>When I try dumping this to standard output it dumps like 20140518-junk-junk. That it dumps a garbage string . I thought it would dump like 2014-05-18.</p>