Breaking Change T894173
Visible to All Users

The default behavior of the 'Week-Year' group interval has changed

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.

Code
GetDateWeekYear(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:

Code
GetDateWeekYear([Date],'FirstDay')

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.