S
Steph.
When I use the "Calendar.GetWeekOfYear" function, with "fr-BE" as CultureInfo and Monday as the first day of week, I get :
Friday 31/12/2004 : week = 53
Saturday 01/01/2005 : week = 1
(see code sample here below)
That's very interesting but totally incorrect !! Friday and Saturday of the same week should have the same week number ! Except in DOTNET..
Is there any Patch for this bug ??
Thanks,
Steph.
Code sample :
CultureInfo myCI = new CultureInfo("fr-BE");
Calendar MyCal = myCI.Calendar;
CalendarWeekRule myCWR = myCI.DateTimeFormat.CalendarWeekRule;
DayOfWeek myFirstDOW = myCI.DateTimeFormat.FirstDayOfWeek;
MessageBox.Show(MyCal.GetWeekOfYear(Convert.ToDateTime("31/12/2004"), myCWR, myFirstDOW).ToString());
MessageBox.Show(MyCal.GetWeekOfYear(Convert.ToDateTime("01/01/2005"), myCWR, myFirstDOW).ToString());
Friday 31/12/2004 : week = 53
Saturday 01/01/2005 : week = 1
(see code sample here below)
That's very interesting but totally incorrect !! Friday and Saturday of the same week should have the same week number ! Except in DOTNET..
Is there any Patch for this bug ??
Thanks,
Steph.
Code sample :
CultureInfo myCI = new CultureInfo("fr-BE");
Calendar MyCal = myCI.Calendar;
CalendarWeekRule myCWR = myCI.DateTimeFormat.CalendarWeekRule;
DayOfWeek myFirstDOW = myCI.DateTimeFormat.FirstDayOfWeek;
MessageBox.Show(MyCal.GetWeekOfYear(Convert.ToDateTime("31/12/2004"), myCWR, myFirstDOW).ToString());
MessageBox.Show(MyCal.GetWeekOfYear(Convert.ToDateTime("01/01/2005"), myCWR, myFirstDOW).ToString());