我想在某个日期添加日期。我有这样的代码:C#中的日期时间添加日期
DateTime endDate = Convert.ToDateTime(this.txtStartDate.Text);
Int64 addedDays = Convert.ToInt64(txtDaysSupp.Text);
endDate.AddDays(addedDays);
DateTime end = endDate;
this.txtEndDate.Text = end.ToShortDateString();
但是这段代码不工作,天没有添加!我在做什么愚蠢的错误?
什么是不工作? – 2013-03-12 11:28:49
我看到四个完全相同的答案。为什么... – 2016-12-10 05:07:41