.net服务器时间获取与运算;
Panel1.Visible = true;
string stime = System.DateTime.Today.Year.ToString();//获取当天时间年份+10的时间
string yue = System.DateTime.Today.Month.ToString();
string ri=System.DateTime.Today.Day.ToString();
Label9.Text = stime+"."+yue +"."+ri;
string stimes = System.DateTime.Today.Date.AddYears(10).Year.ToString() ;// 获取当天时间年份+10的时间
string yues = System.DateTime.Today.Month.ToString();//获取当天时间月份的时间
string ris = System.DateTime.Today.Day.ToString();//获取当天时间的时间
Label8.Text = stimes + "年" + yues + "月" + ris + "日";