![]() |
ISO week numbers |
Post Reply ![]() |
Author | |
zeko78 ![]() Groupie ![]() Joined: 21 August 2006 Location: Norway Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() Posted: 12 October 2006 at 8:18am |
Hi,
As far as I can see the Calendar control only supports "simple week numbers", week one is the week with January 1st in it.
In most of (or all of) Europe we use ISO week numbers. In my country (Norway) week numbers is heavily used, and the end user expects ISO week numbers in a calendar.
So, my question is: Is it possible to get support for ISO week numbers in the calendar control?
The definition for ISO week 1 is:
Week 1 is the week that includes January 4th.
Here's a link to an C algorithm:
(look for "From the simple week number to the ISO week number")
Best regards,
Gøran
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Maybe you want wndDatePicker.FirstWeekOfYearDays = 4 for first 4 day week?
|
|
![]() |
|
zeko78 ![]() Groupie ![]() Joined: 21 August 2006 Location: Norway Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() |
Thank you very much, that was just what I needed
![]() |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |