title: Convert date into specific format
body: <p>I am working on Java. I have a date for example: 20120328.<br>
  Year is 2012, month is 03 &amp; day is 28.<br>
  I want to convert it into <code>yyyy-MM-dd</code> format.<br>
  I have tried it but it is not working.<br>
  How to do it?</p>