This is a migrated thread and some comments may be shown as answers.

Week number is calculated incorrectly in DatePicker

1 Answer 70 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jonathan Puddle
Top achievements
Rank 1
Jonathan Puddle asked on 19 Apr 2010, 01:12 PM
We've started using the RadControls DatePicker for a site we're developer, and we've noticed that the DatePicker is calculating the week number incorrectly. It's easiest to see the cause of this problem if you look back to the start of the year. According to the ISO standard for week numbers (available here: http://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_of_a_given_date) the first week of the year is the week that contains the first Thursday. However in your calculation the first week starts with the week containing the 1st day of the year (it appears).

Subsequently, your week numbers are incorrect by 1. Additional information can also be found here: http://wapedia.mobi/en/ISO_week_date

We would appreciate this issue looked into and hopefully fixed, as it is resulting in inaccurate data entry for our staff who use the DatePicker to find out the current week number.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Apr 2010, 01:14 PM
Hello Jonathan,

Please refer to

http://www.telerik.com/community/forums/aspnet-ajax/calendar/2009-amp-53-weeks.aspx

Sincerely yours,
Dimo
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.
Tags
Calendar
Asked by
Jonathan Puddle
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or