使用 NodaTime 库,如何根据周数和周 WeekYear 计算一周第一天的 LocalDate。
反过来:
var date = new LocalDate(2012, 1, 1);
int weekYear = date.WeekYear; // 2011
int weekNr = date.WeekOfWeekYear; // 52
像这样的假代码:
var newDate = LocalDate.FirstDayFromWeek(weekYear, weekNr);