这是我写过算周的代码,看你能不能用
Dim ThisYear As Integer = Date.Today.YearDim ThisWeek As Integer = Date.Today.DayOfWeek '算出今天是星期几Dim dt1 As Date = Date.Today.AddDays(-ThisWeek) '获取本周的第一天Dim dt2 As Date = Date.Today.AddDays(6 - ThisWeek) '获取本周的最后一天