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

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

1 Answer 34 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 25 Jul 2016, 12:50 PM

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.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 27 Jul 2016, 09:31 AM
Hi,

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.



Regards,
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
Tags
Calendar
Asked by
Peter
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or