Hi,
When user enter only mm/dd, i need to show invalid date format error message. To do this i am trying to get the entered date value using valueChange() method. But valueChange() method only return date value if user enter mm/dd/yyyy like [12/12/2020]. When user enter partial value like [12/12/yyyy], it return null value. How can i get the partial date value?
Thanks
4 Answers, 1 is accepted
Hi Saravanan,
In general the (valueChange) event of the DatePicker component returns either a valid JavaScript Date or null whenever the Date is changed. A JavaScript Date can either be valid or invalid. That is why, the (valueChange) cannot return a partial date as there isn't such partial date instance provided by the JavaScript Date.
Regards,
Svetlin
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Thank you Svetlin for your response.
So there is no way to get partial date from kendo date picker component?
Thanks
Saravanan
Hello Saravan,
Yes correct, dateinput may validate partial date , but it is not possible to get this partial date at users disposal in the code.
Regards,
Ivan
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
