摘要:
直接上代码: int i = System.Globalization.CultureInfo.CurrentCulture.Calendar.GetWeekOfYear (DateTime.Now, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Monday); int year = DateTime.Now.Year * 100; int yearweek = year + i;GetWeekOfYear第一个参数:时间,第二个参数:计划规则,如每年的第一天算不算第一周之类的,具体MSDN第三个参数:一周的第一天,我国是 阅读全文