我正在使用 vs 2010。
下面的代码是我如何在 2 个文本框中输入 2 个日期。我想知道如何计算编号。他们之间的天数。如果可能的话,你能告诉我如何提前从那个数字起飞星期天吗?thnx
protected void LinkButton1_Click(object sender, EventArgs e)
{
Calendar1.Visible = true;
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox3.Text = Calendar1.SelectedDate.ToLongDateString();
Calendar1.Visible = false;
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
Calendar2.Visible = true;
}
protected void Calendar2_SelectionChanged(object sender, EventArgs e)
{
TextBox4.Text = Calendar2.SelectedDate.ToLongDateString();
Calendar2.Visible = false;
}