Weekofyear is wrong for germany

I’m glad I was able to help.

You can use this instead:

Public Function ISO8601WeekNumber(extends dt as DateTime) As Integer
  Return dt.ToString("w",locale.Current).ToInteger
End Function
3 Likes