how to subtract two txtbox datetime values and get value in third txtbox
plz rply soon
i need it urgently,,,,,,
plz rply soon.............
How to subtract two txtbox datetime value
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Vishnujeet KumarRank #1,019 · 1.9K reputationPosted Dec 30, 2012, 7:35 PM EST
DateTime christmas = Convert.ToDateTime(textBox1.Text);
DateTime newYears = Convert.ToDateTime(textBox2.Text);
TimeSpan span = newYears.Subtract(christmas);
textBox3.Text = span.ToString();
Vithal WadjeRank #19 · 47.2K reputationPosted Dec 30, 2012, 8:11 PM EST