title: How do I add leading zeroes to String.Format parameters?
body: <p>I have the following code:</p>
  
  <pre class="lang-cs prettyprint-override"><code>string textTransDate = String.Format("{0}-{1}-{2} {3}:{4}", DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute);
  </code></pre>
  
  <p>I want to add leading zeroes to the month and day parameters if they are less than 10, how would I accomplish this?</p>