title: How to get month and day in android?
body: <p>I need to get month and day as :01 for January, 02 for February... and 01 for first day of month, etc... I tried this :</p>
  
  <pre><code> String dd = c.get(Calendar.YEAR) + "-" 
          + c.get(Calendar.MONTH)
          + "-" + c.get(Calendar.DAY_OF_MONTH) 
          + " " + c.get(Calendar.HOUR_OF_DAY) 
          + ":" + c.get(Calendar.MINUTE)
          + ":" + c.get((Calendar.SECOND));
  </code></pre>
  
  <p>but I get something like this :</p>
  
  <pre><code>2011-8-1 12:05:20
  </code></pre>
  
  <p>Which is the solution of this problem? For month I think I have to add 1,right? </p>