获取当前日期是本年第几周

 System.Globalization.GregorianCalendar gc = new System.Globalization.GregorianCalendar();
            int weekOfYear = gc.GetWeekOfYear(DateTime.Now, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Monday);

posted @ 2010-08-06 16:10  网络耗子  阅读(515)  评论(0编辑  收藏  举报