Is .NET giving me the wrong week number for Dec. 29th 2008?

前端 未结 7 1024
不思量自难忘°
不思量自难忘° 2020-12-31 06:06

According to the official (gregorian) calendar, the week number for 29/12/2008 is 1, because after the last day of week 52 (i.e. 28/12) there are three or less days left in

7条回答
  •  难免孤独
    2020-12-31 06:32

    Week numbers differ from country to country and should depend on your locale/regional settings if I'm not entirely wrong.

    Edit: Wikipedia supports my vague recollection that these numbers differ based on country: http://en.wikipedia.org/wiki/Week_number#Week_number

    I would expect a respectable framework to obey the COUNTRY selected in your local runtime.

提交回复
热议问题