I want ajax and update exits DateRangePicker. I want click daterangepicker and auto select datetime
$(".kt_datepicker").daterangepicker({
singleDatePicker: true,
timePicker: true,
showDropdowns: true,
minYear: new Date().getFullYear() - 1,
locale: {
format: "YYYY-MM-DD HH:mm"
}
});
//
$(".kt_datepicker").val(moment(new Date("2022-11-15 18:00")).format("YYYY-MM-DD HH:mm"));
Hi,
You can check the plugin's official documentation here to learn it's API methods to set a new range value.
Regards.