摘要:
DateTime dt=DateTime.Now;//当前时间DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") 24小时制DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") 12小时制DateTime startWeek=dt.AddDays(1-Convert.ToInt32(dt.DayOfWeek.ToString("d")));//本周周一DateTime endWeek=startWeek.AddDays(6);//本周周日DateTime sta 阅读全文