Possible bug in kendo.ParseDate?

2 posts, 1 answers
  1. John
    John avatar
    5 posts
    Member since:
    May 2018

    Posted 07 Jan Link to this post

    I was expecting to get either null or a date object out of the parser, always.  However i discovered when we tried to parse the number 253 that you'll end up with this error:  Uncaught TypeError: e.indexOf is not a function at ... (where ... is the kendo file and location).

    It seems to work ok if you .toString() everything.
  2. Answer
    Georgi avatar
    695 posts

    Posted 12 Jan Link to this post

    Hi John,

    The kendo.parseDate method parses as a formatted string as a Date. Thus, you have to stringify the number before passing to the parseDate method. For further information, please refer to the docs:

    I hope this helps.


    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/.

Back to Top