C# 时间相减得到天数 TimeSpan ts = DateTime.Now.Date- Convert.ToDateTime(textBox1.Text); int days = ts.Days; textBox7.Text = ts.ToString();