Wrong week number for last monday 
Author Message
 Wrong week number for last monday

Works fine for me...

  Dim cal As Calendar = New GregorianCalendar()
  Dim d As Date = #1/1/2002#

  Console.WriteLine(cal.GetWeekOfYear(d, FirstDay, Monday))
  Console.WriteLine(cal.GetWeekOfYear(d, FirstFourDayWeek, Monday))
  Console.WriteLine(cal.GetWeekOfYear(d, FirstFullWeek, Monday))

1
1
53

--
Jonathan Allen


Quote:
> According to Q200299 there is a bug in oleaut32.dll that
> generates the wrong week number for last monday in the
> year.

> The problem is still there in VB.NET......
> Will MS do anything about this??!!

> Mats Larsson



Thu, 19 Aug 2004 03:52:06 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Date of Monday actual week

2. How to get this week's Monday date

3. How to show monday of this week on a form

4. every day show Monday and Friday of the week on a form

5. Showing Monday to Friday Week

6. Compare last 7 days to last calendar week V8.5

7. How to determine last week of a year?

8. Last week for the Exchange Developer Survey

9. Top 5 downloads last week at Win32 Scripting

10. pd grafx program i wrote last week =)

11. how to determine "last week"

12. Top 5 downloads last week at Win32 Scripting

 

 
Powered by phpBB® Forum Software