工作需要,本地控制台测试好了,记录下:
var weekDay = (int)DateTime.Now.DayOfWeek;
var minDay = DateTime.Now.Date.AddDays(0 - weekDay);
工作需要,本地控制台测试好了,记录下:
var weekDay = (int)DateTime.Now.DayOfWeek;
var minDay = DateTime.Now.Date.AddDays(0 - weekDay);