ASP.NET根据当前的第几月第几周星期几去判断当前的日期
最好粘贴代码 求解释!!!!!!
------解决方案--------------------
int year = 2012;
int month = 4;
int week = 2;
int dayofweek = 1;
DateTime dt = new DateTime(year, month, 1);
int fdow = (int)dt.DayOfWeek;
dt = dt.AddDays((week - 1) * 7 - fdow + dayofweek);
Response.WriteLine(dt.ToString());