//两个时间点相差多少 TimeSpan timespan = Convert.ToDateTime(DateTime.Now.Year+"-6-18") - DateTime.Now; //两个时间点相差天数 int dataspan = timespan.Days; //得到中文的星期几 System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(DateTime.Now.DayOfWeek);
//两个时间点相差多少 TimeSpan timespan = Convert.ToDateTime(DateTime.Now.Year+"-6-18") - DateTime.Now; //两个时间点相差天数 int dataspan = timespan.Days; //得到中文的星期几 System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(DateTime.Now.DayOfWeek);