title: How to get Date Difference in textbox?
body: <p>I have two textboxes : TextBox1 and TextBox2 both have date.</p>
  
  <p>I want to get date difference in third textbox, that is TextBox3.</p>
  
  <p>My code is:</p>
  
  <pre><code>protected void TextBox1_TextChanged(object sender, EventArgs e)
  {
      TextBox3.Text = ((Convert.ToInt32(TextBox1.Text) - Convert.ToInt32(TextBox2.Text)).ToString());
  }
  
  protected void TextBox2_TextChanged(object sender, EventArgs e)
  {
      TextBox3.Text = ((Convert.ToInt32(TextBox1.Text) - Convert.ToInt32(TextBox2.Text)).ToString());
  }
  </code></pre>