I have 2 datetimepicker on my application called Start Date & Due Date. If user selects 7th April as start date so end date should not be less then 7th, before 7th April dates should be disable. Since its datetimeepicker so both date & time should be taken into consideration.
$('.tsk_start').datetimepicker({
format: 'yyyy-mm-dd hh:ii',
//daysOfWeekDisabled:[5,6],
autoclose: true,
todayBtn: true,
startDate: new Date(),
}).on('changeDate', function(selected){
});
$('.tsk_end').datetimepicker({
format: 'yyyy-mm-dd hh:ii',
autoclose: true,
todayBtn: true,
}).on('changeDate', function(selected){
});
I searched multiple questions here but unable to find proper documentation. I am using this plugin http://www.malot.fr/bootstrap-datetimepicker/index.php