算一年中,每个星期的日期范围
摘要:
static List<object> WeekYearStr(int year) { DateTime firstDay = DateTime.Parse(year + "-1-1"); int countWeek = WeekYear(year); object dayofweek = firstDay.DayOfWeek; Console.WriteLine("第一天是星期:" + Convert.ToString(dayofweek)); int weeks = Convert.ToInt32(dayofweek); List< 阅读全文