Ad Code

Disable datetimepicker past date & time

To disable the past time, you should use minDateTime. Update your code like this, 
$(document).ready(function(){
$('.date-future').datetimepicker({
minDate:0,
step:15,
minDateTime: new Date(),
maxDate:false,
closeOnDateSelect: false,
closeOnTimeSelect: true,
formatTime:"h:i A",
format:'Y-m-d H:i'
});
});

Post a Comment

0 Comments