title: How can I format an integer to DD format
body: <p>I need to convert the integer 1,2...9 in 'DD' format i.e; to O1, 02, ....09</p>
  
  <p>For January the below code returns 0</p>
  
  <pre><code> int month = cal.get(Calendar.MONTH); 
  </code></pre>
  
  <p>How can I return the month in MM format?</p>