Convert string to date in a specific format without time
<p>I have a doubt that when I am converting a String to date then It will return it as:</p>

<p><strong>Sun Apr 30 00:00:00 GMT+05:30 2017</strong></p>

<p>but I want the format to be as:</p>

<p><strong>2017-04-30</strong></p>

<pre><code>Date last_date_date = new SimpleDateFormat("yyyy-MM-dd").parse("2017-04-30");
</code></pre>

<p>So Which method I need to apply for that?</p>
