How do I just disable the past date of only the calendar and not the time picker in tempusdominus?
$(function () {
$('#datetimepicker13').datetimepicker({
inline: true,
sideBySide: true,
format: 'YYYY/MM/DD HH:mm',
minDate: new Date()
});
});
This code just disable both the past date and past time.
Solved. What worked for me is
$(function () {
$('#datetimepicker13').datetimepicker({
showClose: true,
inline: true,
sideBySide: true,
format: 'YYYY/MM/DD HH:mm',
minDate: new Date().setHours(0,0,0,0),
});
});
Thank you