摘要:
DateTime dt = DateTime.Now; int weeknow = Convert.ToInt32(DateTime.Now.DayOfWeek); int dayspan = (-1) * weeknow + 1; DateTime dt2 = dt.AddMonths(1); //获取本周第一天 this.Label1.Text = DateTime.Now.AddDays(dayspan).ToString("yyyy-MM-dd"); //本月第一天 thi... 阅读全文