title: Java SimpleDateFormat: Unparseable Date exception
body: <p>The code is as mentioned below:</p>
  
  <pre><code>public static void main(String[] args){
      Date date = new Date();
      DateFormat dateFormat= new SimpleDateFormat("dd-MMM-yyy");
  
      try{
          Date formattedDate = dateFormat.parse(date.toString());
          System.out.println(formattedDate.toString());
      }catch(ParseException parseEx){
          parseEx.printStackTrace();
      }
  }
  </code></pre>
  
  <p>In code above, <code>dateFormat.parse(date.toString())</code> is throwing unparseable date exception: <code>Unparseable date: "Mon Jan 28 18:53:24 IST 2013</code></p>
  
  <p>I am not able to figure out the reason for it.</p>