This is a migrated thread and some comments may be shown as answers.

DatePicker: Can we configure shortYearCutOff

1 Answer 114 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Nishad
Top achievements
Rank 1
Nishad asked on 20 Feb 2013, 07:01 AM
Hi,

I have a requirement where shortYearCutOff has to be 29, but its hardcoded as 30 in Kendo UI.

 $("#sampleDate").kendoDatePicker({
    format: "MM/dd/yyyy",
    parseFormats: ["MMddyy"]
});

Here is the condition how it works:
If yy <= zz, then automatically substituted by year 20YY
If yy > zz, then automatically substituted by year 19YY
Where zz – shortYearCutOff (it’s a local variable which is used in function parseExact())

Input

Output

Expected Output where shortYearCutOff=29

031329
031330
031331
031332

03/13/2029
03/13/2030
03/13/1931
03/13/1932

03/13/2029
03/13/1930
03/13/1931
03/13/1932


Thanks
Nishad.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 21 Feb 2013, 12:11 PM
Hello Nishad,

 
Currently setting a shortYearCutOff is not supported. We will add support for this functionality in next internal build of Kendo UI, which is available only for paid customers.

Kind regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Date/Time Pickers
Asked by
Nishad
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or