Hi,
Actually 12/28/2010 is in 52 week, in both US and
ISO standards. So both 51 and 1 are wrong.
Try the following code-snippets:
Aspx:
Cs:
This should get you the right day when you use GetWeekOfYear.
Be aware that you still will have divergence in some cases.
For example:
12/31/2012 is 53 week by the ISO standard.
01/01/2013 is 1 week by the ISO standard.
Both this days, however are in the same week. In calendar week column, you can see only one number. It can not show 53 and 1 at the same time. And it shows 1.
All the best,
Vasil
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the
Telerik Public Issue Tracking system and vote to affect the priority of the items