Last Updated: 26 Jul 2022 10:33 by Kumeri
Created on: 26 Jul 2022 10:33
Category: Calendar
Type: Feature Request
Allow configuring TWO_DIGIT_YEAR_MAX field

We are using the "kendo-calendar" in our application and are using IntlService.parseDate for parsing dates. This function ignores the twoDigitYearMax setting as the year 2029 is hardcoded in it. That means that any dates from 2030 and onward will be treated as 1930 and onward instead (when input using a 2-digits format mask)

Given that 2030 is soon (noticeably closer than 1930), some of our customers are already entering delivery dates for that year. 

The constant TWO_DIGIT_YEAR_MAX = 2029 in kendo-intl/src/dates/parse-date.js should be made configurable instead to avoid those problems.