title: Converting yyyy-mm-dd into dd mm yyyy
body: <p>How to convert 2013-06-24 to 24 Jun 2013? I am using the below code. </p>
  
  <pre><code>date1="2013-06-24";
  SimpleDateFormat d= new SimpleDateFormat("dd MMM yyyy");
  
  try{
  date2 =  d.parse(date1);
  }catch (ParseException e1) {
  // TODO Auto-generated catch block
    e1.printStackTrace();
  }  
  </code></pre>
  
  <p>But I am getting this error "java.text.ParseException: Unparseable date: "2013-06-24" (at offset 4)"</p>