Easy: take the two TextBox values, convert them to DateTime objects, and subtract one from the other:
DateTime startDate = DateTime.Parse(txtDatefrom.Text);
DateTime endDate = DateTime.Parse(txtDateTo.Text);
TimeSpan diff = endDate - startDate;
double days = diff.TotalDays;