Hi all

First of all I must apologize for brining this subject up yet again on these forums. I have searched for soluions and I also thought i found it.
However it seems to make some kind of miscalculation or something..
Here's one of the solutions I found in my search.
VB Code:
  1. Public Class Form1
  2.  
  3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4.         MessageBox.Show(Me.GetMonthWeekNumber(Me.DateTimePicker1.Value).ToString())
  5.  
  6.     End Sub
  7.  
  8.     Private Function GetMonthWeekNumber(ByVal [date] As Date) As Integer
  9.         Dim cal As Globalization.Calendar = Globalization.CultureInfo.CurrentCulture.Calendar
  10.  
  11.         Dim monthStartWeek As Integer = cal.GetWeekOfYear(New Date([date].Year, _
  12.                                                                    [date].Month, _
  13.                                                                    1), _
  14.                                                           Globalization.CalendarWeekRule.FirstDay, _
  15.                                                           DayOfWeek.Monday)
  16.         Dim currentWeek As Integer = cal.GetWeekOfYear([date], _
  17.                                                        Globalization.CalendarWeekRule.FirstDay, _
  18.                                                        DayOfWeek.Monday)
  19.  
  20.         Dim monthWeekNumber As Integer = currentWeek - monthStartWeek + 1
  21.  
  22.         Return monthWeekNumber
  23.     End Function
  24.  
  25. End Class
But when i compared the result with what i found on MS Outlook it didnt seem to match. Outlook, as does my program, use Monday as first day of week. But if you select the date 01.01.2006 in the DateTimePicker it will say that the weeknumber is 1. Outlook however claims it to be week #52.
(01.01.2006 is a sunday). This means that my program, using the code above, will claim that there are 53 weeks in this year..
Is there any other method I can use that will display the correct week number of a selected date?