protected void cal_SelectionChanged(object sender, EventArgs e)
{
DateTime now = DateTime.Now;
DateTime check = DateTime.Now.AddDays(7);
now = now.AddDays(2);
lbt1.Text = (now.ToString("dddd"));
now = now.AddDays(1);
lbt2.Text = (now.ToString("dddd"));
now = now.AddDays(1);
lbt3.Text = (now.ToString("dddd"));
now = now.AddDays(1);
lbt4.Text = (now.ToString("dddd"));
now = now.AddDays(1);
lbt5.Text = (now.ToString("dddd"));
now = now.AddDays(1);
lbt6.Text = (now.ToString("dddd"));
now = now.AddDays(1);
lbt7.Text = (now.ToString("dddd"));
lb7.Text = DateTime.Now.ToShortTimeString();
// lbd0.Text = cal.TodaysDate.ToShortDateString();
lbd0.Text = DateTime.Today.AddDays(2).ToShortDateString();
lbd1.Text = DateTime.Today.AddDays(3).ToShortDateString();
lbd2.Text = DateTime.Today.AddDays(4).ToShortDateString();
lbd3.Text = DateTime.Today.AddDays(5).ToShortDateString();
lbd4.Text = DateTime.Today.AddDays(6).ToShortDateString();
lbd5.Text = DateTime.Today.AddDays(7).ToShortDateString();
lbd6.Text = DateTime.Today.AddDays(8).ToShortDateString();
cal.Visible = false;
Replies
Know the answer? Post it — somebody with the same question will find it here.