What Changed
In v20.1.4 we changed the default behavior of the 'Week-Year' Group Interval (first introduced in v20.1.3). Group interval does not use the CalendarWeekRule culture setting and calculates an interval based on the FirstFullWeek
rule.
Reasons for Change
We discovered that users did not expect that a week at the beginning of the year could be divided into two parts.
Impact on Existing Apps
The Week-Year
group interval is calculated based on the FirstFullWeek
rule.
How to Update Existing Apps
To specify a calendar rule that differs from the default rule, you can create a calculated field and use the GetDateWeekYear
function overload with two parameters. The function returns the date of the first day of the week for DateTime
. The second parameter determines the rule that is used to calculate the calendar week.
CodeGetDateWeekYear(DateTime,['FirstDay', 'FirstFullWeek', 'FirstFourDayWeek'])
For example, the following function indicates that the first week of the year starts on the first day of the year and ends before the following designated first day of the week:
CodeGetDateWeekYear([Date],'FirstDay')