To whom it may concern,we are having some issues with the year end/year beginning and the calendar weeks during those weeks. In the 1st calendar week of the year 2015 (Days 29, 30, 31 of December 2014) the calendar week is numbered 53.However in the 53st week of the year 2015 (days 1, 2, 3 of January 2016) the calendar week is numbered 53, whereas the logic would dictate this week to be numbered 1.GetWeekNumberForDate is the function that seems to differ and vary, depending on the calendar year. Whereas the calendar control UltraDayView has the same logic display consistently. Could you please explain your ideas behind this? We are having rather large issues with each year end/ year beginning using your software and we are open to solutions, that will be consistent for the future.Best wishes,
A. Kasar
Hi Kasar,
Is there anything further that I can do to assist you with this issue?
Our team has checked into the code for our CalendarInfo to find the cause of this issue. In our code, we are getting the week numbers directly from the .NET Framework.
If you believe that the week numbers are incorrect in the .NET Framework and you would like this to be corrected, I recommend submitting a bug to Microsoft. Microsoft accepts .NET Framework bug reports here: https://connect.microsoft.com/VisualStudio
Please let me know if there is anything further that I can do to help.
After taking another look at WinCalendarInfo with the new info you provided in mind, along with a bit of research on the official designation of week numbers, I believe that our component may be behaving incorrectly. I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 185032. The next step will be for a developer to review my investigation and confirm my findings, or to offer a fix or other resolution.
I will leave this case open and update you with any new information after the review. You can also continue to send updates to this case at any time.
You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing this case on the web site.
Please let me know if you need more information.
Sincerely,Mike BowshewiczDeveloper, Windows Formshttp://ko.infragistics.com/
Correction: [...] I have FirstDayOfWeek = Monday and WeekRule = FirstFourDayWeek set. [...]
Thank you very much for your reply and your example provided. I am so sorry if my wording has been a little off and misunderstood, so I am trying to explain the problem at hand again. I have FirstDayOfWeek = Thursday and WeekRule = FirstFourDayWeek set.With these settings I need the SAME week for each weekday in one calendar week via the function GetWeekNumberForDate. As is shown in the picture and Control UltraMonthViewMulti (picture). At the moment I am getting for December 29th, 30th, 31st 2014 the calendar week 53 (in my opinion this is wrong, as I am expecting the week nr. 1, as the week 53 does not exist officially for the year 2014) and for January 1st, 2nd, 3rd, 4th 2015 I am getting calendar week 1 (this is correct) from the programming. The days of this last calendar week should be in the same number week (as expected) in order to work properly for my programming. Sincerely,A. Kasar