/// <summary> /// 删除一个月前的log /// </summary> public void ClearOverdueLog() { DateTime dt = DateTime.Now.AddDays(-30); string datetime = dt.ToString("yyyy-MM-dd") + " 00:00:00.000"; LogDAL ld = new LogDAL(); ld.ClearOverdueLog(datetime); }