Calendar.MINUTE giving minutes without leading zero
<p>Hi all I am using below code to get adnroid phone time,but it giving me  minuts without zero if the minuts are in between 1 to 9.
for example:right now I have time on my device 12:09 but its giving me as 12:9 </p>

<pre><code>Calendar c = Calendar.getInstance();
int hrs = c.get(Calendar.HOUR);
int mnts = c.get(Calendar.MINUTE);
String curTime = "" + hrs + ":" + mnts;
return curTime;
</code></pre>

<p>after above code I also try below code its giving same thing as above,minuts without zero before number it the minuts in between 1 to 9 . . </p>

<pre><code>final Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(System.currentTimeMillis());
Date date = cal.getTime();
int mHour = date.getHours();
int mMinute = date.getMinutes();
</code></pre>
