在一个中,我请求社区支持如何根据所要求的周数显示一周。这个问题现在演变成一个如何在一年中显示正确的星期数的问题。
我从StackExchange网络中的其他线程获得的输入开始使用这个方法,但是它显示的是错误的周值。
Protected Friend Shared Function GetNumberOfWeeksInAYear(ByVal GetYear As Nullable(Of Integer)) As Nullable(Of Integer)
Dim RequestedYear As DateTime = New DateTime(GetYear, 12, 31