以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 判断第几周 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=67832) |
-- 作者:一笑 -- 发布时间:2015/5/4 15:14:00 -- 判断第几周 能否用代码判断某一天属于当年第几周吗?有这种属性吗?谢谢 |
-- 作者:Bin -- 发布时间:2015/5/4 15:18:00 -- Dim gc As System.Globalization.GregorianCalendar = new System.Globalization.GregorianCalendar() Dim weekOfYear As Integer = gc.GetWeekOfYear(Date.Today,System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Monday) Return weekOfYear
|