Android: How to convert string into date
<p>I am currently working on a calendar application using Caldroid and the date that Caldroid returns looks like this:</p>

<pre><code>Fri Jun 17 12:31:00 GMT+07:00 2016
</code></pre>

<p>I just need to extract the date from it like for example:</p>

<pre><code>17-06-2016
</code></pre>

<p>How am I supposed to do that?</p>