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

DatePicker - wrong Month displayed

1 Answer 215 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Brot
Top achievements
Rank 1
Brot asked on 12 Mar 2015, 12:24 PM
I tried your example http://dojo.telerik.com/oFoQU and it display´s a wrong month !

$("#datepicker").kendoDatePicker({
    value: new Date(2015, 05, 10)
});

This is setting the following Date to your DatePicker: 6/10/2015 

???

1 Answer, 1 is accepted

Sort by
0
Brot
Top achievements
Rank 1
answered on 13 Mar 2015, 07:42 AM
Hi i think i got an answer by myself.
In JavaScript the getMonth() method returns the month (from 0 to 11) for the specified date, according to local time.
Note: January is 0, February is 1, and so on.

source: http://www.w3schools.com/jsref/jsref_getmonth.asp
Tags
Date/Time Pickers
Asked by
Brot
Top achievements
Rank 1
Answers by
Brot
Top achievements
Rank 1
Share this question
or