A have the following date time picker
<input kendo-date-time-picker k-options="myOptions"/ >
With following options:
function setMaxDate() {
$scope.myOptions = {
min: $scope.mindate,
max: new Date(),
close: function () {
$scope.dateValidation = false;
},
parseFormats: ['yyyy-MM-ddTHH:mm:ss'],
format: 'MM/dd/yyyy HH:mm',
timeFormat: 'HH:mm'
}
}
When user clicks the calender icon the calender is loading fine with out the future dates.(Last date is set to current date). If user type and enter a future date it is not getting validated. How can I acheive that ?