I am struggling with the date & time picker not working correctly in the following function.
I suspect there is a conflict between the minDate function of the jQuery UI time picker.
I have tried changing the script location and removing the minDate functions from the time picker, but it still does not work properly.
jQuery('.datepicker1').datetimepicker({
onSelect: function(dateText, inst) {
jQuery('.datepicker2').datetimepicker({
minDate: new JalaliDate(inst['selectedYear'], inst['selectedMonth'], inst['selectedDay']),
});
},
});
Can you please assist me with this?