a bug in the calendar puts the wrong date in the cells.

2 posts, 0 answers
  1. Peter
    Peter avatar
    4 posts
    Member since:
    Mar 2015

    Posted 25 Jul 2016 Link to this post

    So, I've been spending roughly a day extra coding javascript and testing my code only to find that the date in data-value of the td elements are one month behind.

    I'm posting a screenshot. now my question is, is this considered a bug? it's not hard for me to compensate for this, but I'd hate to change it again after a brief bug fix patch. please get back to me on this.

  2. Viktor Tachev
    Viktor Tachev avatar
    2469 posts

    Posted 27 Jul 2016 Link to this post


    Note that the calendar widgets use JavaScript Date object. The Month property of the object is zero-based. This i why the index of the month is one less than the actual number of the month. You can test this in the browser console as shown in this video.

    If you would like additional information on the Date object you would find the following article interesting.

    Viktor Tachev
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top