B
bpsdgnews
Hi,
This:
DatePart(DateInterval.WeekOfYear, DateSerial(2008,12,29),
FirstDayOfWeek.Monday, FirstWeekOfYear.FirstFourDays)
Returns 53.
DatePart(DateInterval.WeekOfYear, DateSerial(2001,1,1),
FirstDayOfWeek.Monday, FirstWeekOfYear.FirstFourDays)
Returns 1.
Both days were in the same week. Our weeks start at monday. So there
were four days of january in this week. So in my opinion both should
have returned 1.
Any suggestions on how I can get the proper weeknumber?
This:
DatePart(DateInterval.WeekOfYear, DateSerial(2008,12,29),
FirstDayOfWeek.Monday, FirstWeekOfYear.FirstFourDays)
Returns 53.
DatePart(DateInterval.WeekOfYear, DateSerial(2001,1,1),
FirstDayOfWeek.Monday, FirstWeekOfYear.FirstFourDays)
Returns 1.
Both days were in the same week. Our weeks start at monday. So there
were four days of january in this week. So in my opinion both should
have returned 1.
Any suggestions on how I can get the proper weeknumber?