Hi,
Thanks
Nishad.
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 |
03/13/2029 |
03/13/2029 |
Thanks
Nishad.