title: Java: Convert String Date to Month Name Year (MMM yyyy)
body: <p>I am new to Java. I am trying to convert date from string to MMM yyyy format (Mar 2016). I tried this</p>
  
  <pre><code>Calendar cal=Calendar.getInstance();
  SimpleDateFormat month_date = new SimpleDateFormat("MMM yyyy");
  String month_name = month_date.format(cal.getTime());
  System.out.println("Month :: " + month_name);  //Mar 2016
  </code></pre>
  
  <p>It is working fine. But when I use</p>
  
  <pre><code>String actualDate = "2016-03-20";
  </code></pre>
  
  <p>It is not working. Help me, how to solve this.</p>