Date format mismatch. Unparsable exception
<p>I  want to change </p>

<blockquote>
  <p>"01-Jun-2016 07:54 AM" </p>
</blockquote>

<p>to </p>

<blockquote>
  <p>"26th May,2016" </p>
</blockquote>

<p><strong>Here is my code</strong> </p>

<pre><code>DateFormat df = new SimpleDateFormat("MMM dd, yyyy", Locale.ENGLISH);
DateFormat existinFormat= new SimpleDateFormat("dd-MMM-yyyy HH:mm aa " , Locale
            .ENGLISH);
Calendar c = Calendar.getInstance();
String newDateString = "";
Date startDate = null;
try {
    startDate = existinFormat.parse((date));
    newDateString = df.format(startDate);
} catch (ParseException e) {
    e.printStackTrace();
}
</code></pre>

<p>but its throws parse exception :</p>

<pre><code>java.text.ParseException: Unparseable date: "01-Jun-2016 07:54 AM" (at offset 20)
</code></pre>

<p>If any one found this solution please share with me.</p>