Open rohit715131 opened 4 years ago
$(document).ready(function () { $("#from_date").bootstrapMaterialDatePicker({ weekStart: 0, format: "YYYY-MM-DD HH:mm:ss", defaultDate: moment(min_date), useCurrent: false, minDate: moment(min_date), value: min_date, }) .on("change", function (e, date) { max_date = new Date(date); max_date.setHours(24); $("#to_date").bootstrapMaterialDatePicker("setMinDate",max_date); });
$("#to_date")
.bootstrapMaterialDatePicker({
weekStart: 0,
format: "YYYY-MM-DD HH:mm:ss",
defaultDate: moment(max_date),
minDate: moment(min_date),
value: max_date,
})
.on("change", function (e, date) {
max_date = new Date(date);
max_date.setDate(max_date.getDate());
$("#from_date").bootstrapMaterialDatePicker(
"setMaxDate",
date
);
});
});
Hi team , I am using two times picker once select time and another one hide before time whatever i select. example: I selected 10am after that 0 to 10 will be hide, not able to select. Please help me out.