title: Unable to insert date in Masked TextBox
body: <p>I have a masked textbox in my winforms application. I pull out date from database which comes as <code>2/9/2012</code> and try to insert the same in masked textbox but the textbox displays it as <code>29/20/12__</code>.</p>
  
  <p>Please find the final piece of code which I tried.</p>
  
  <pre><code>if (value.HasValue)
  {
      txtDate.AppendText("    ");
      string month = value.Value.Month.ToString();
      bool insertMonthZero = false;
      if (month.Length == 1)
      {
          //month = "0" + month;
          txtDate.Text = '0' + month;
          insertMonthZero = true;
      }
      else
      {
          txtDate.Text = month;
      }
      string day = value.Value.Day.ToString();
      bool insertDayZero = false;
      if (day.Length == 1)
      {
          insertDayZero = true;
      }
      else
      {
          txtDate.AppendText(day);
      }
      string year = value.Value.Year.ToString();
      txtDate.Text = value.Value.Date.ToShortDateString(); //txtDate.Text + year;
      if (insertMonthZero)
      {
          txtDate.Text.Insert(0, "0");
      }
      if (insertDayZero)
      {
          txtDate.Text.Insert(2, "0");
      }
      //txtDate.AppendText(year);
      // txtDate.Text = "0" + month + "/" + day + "/" + value.Value.Year.ToString();
  }
  </code></pre>