title: How to display month number on selecting month name
body: <p>I have a list of Months displayed in a drop down. On selecting a particular month I would like to display the number of the month in a text box.</p>
  
  <p>For example if I select <code>January</code> I would like to display it as <code>01</code>, likewise for the others.</p>
  
  <p>This is the sample code I have written:</p>
  
  <pre><code>string monthName = "january";
  int i = DateTime.ParseExact(monthName, "MMMM", CultureInfo.CurrentCulture).Month;
  </code></pre>