DatePicker - wrong Month displayed

2 posts, 0 answers
  1. Brot
    Brot avatar
    3 posts
    Member since:
    Mar 2015

    Posted 12 Mar 2015 Link to this post

    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 

    ???
  2. Brot
    Brot avatar
    3 posts
    Member since:
    Mar 2015

    Posted 13 Mar 2015 in reply to Brot Link to this post

    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
  3. Kendo UI is VS 2017 Ready
Back to Top