Android SimpleDateFormat, how to use it?
<p>I am trying to use the Android SimpledateFormat like this:</p>

<pre><code>        String _Date = "2010-09-29 08:45:22"
    SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd");

        try {
            Date date = fmt.parse(_Date);
            return fmt.format(date);
        }
        catch(ParseException pe) {

            return "Date";    
        }
}
</code></pre>

<p>The result is good and i have: 2010-09-29</p>

<p>But if i change the SimpleDateFormat to </p>

<pre><code>SimpleDateFormat("dd-MM-yyyy");
</code></pre>

<p>the problem is that I will got 03-03-0035 !!!!</p>

<p>Why and how to get the format like dd-MM-yyyy</p>
