error display date
<p>i want to get the date and display in my activity
i do this code today but works wrong </p>

<pre><code>    private int mYear;
        private int mMonth;
        private int mDay;
String Date
        final Calendar c = Calendar.getInstance();
                    mYear = c.get(Calendar.YEAR);
                    mMonth = c.get(Calendar.MONTH);
                    mDay = c.get(Calendar.DAY_OF_MONTH);
                    Date = mDay + "-" + mMonth + "-" + mYear;
</code></pre>

<p>it dispay <code>18-11-2012</code>
which is wrong 
but it confuse me why the month display 11 even if the month is 12 
what is wrong ?</p>
