asp.net 返回当前是今年第几周

View Code
1 public static int GetWeekTime(DateTime dt)
2 {
3 int ww = new System.Globalization.GregorianCalendar().GetWeekOfYear(dt, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Sunday);
4 return ww;
5 }
posted @ 2011-07-06 14:10  Jack Qin  阅读(240)  评论(0编辑  收藏  举报
作者:Jack Qin http://www.nosqlcn.com