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

datepicker min max value

1 Answer 55 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 24 Sep 2014, 09:54 PM
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
});

1 Answer, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 24 Sep 2014, 10:24 PM
Nevermind I found out the issue, the month value in new Date is from 0-11 and not from 1-12 (weird choice) .
Tags
Date/Time Pickers
Asked by
Jim
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Share this question
or