摘要: (转)C# 根据当前时间获取本周、下周、本月、下月、本季度等时间段 DateTime dt = DateTime.Now; //当前时间 DateTime startWeek = dt.AddDays(1 - Convert.ToInt32(dt.DayOfWeek.ToString("d"))); //本周周一 DateTime endWeek = startWeek.AddDays(6); //本周周日 DateTime startMonth = dt.AddDays(1 - dt.Day); //本月月初 DateTime endMonth = startMonth. 阅读全文
posted @ 2011-12-30 22:36 Ling.zx 阅读(649) 评论(0) 推荐(1) 编辑