datepicker min max value

2 posts, 0 answers
  1. Jim
    Jim avatar
    35 posts
    Member since:
    May 2011

    Posted 24 Sep 2014 Link to this post

    I am getting errors when I try the following:

    var currentDate = new Date(2014,9,9);  <--- this to be dynamic :currentdate - 3 months

    ​ $("#kdtrFrom").kendoDatePicker({
    max: new Date(),
    min: currentDate ,
    format: "MMM dd, yyyy",
    change: addDate
    });
  2. Jim
    Jim avatar
    35 posts
    Member since:
    May 2011

    Posted 24 Sep 2014 Link to this post

    Nevermind I found out the issue, the month value in new Date is from 0-11 and not from 1-12 (weird choice) .
  3. Kendo UI is VS 2017 Ready
Back to Top