I have this example
$('#datepicker').daterangepicker({
timePicker: true,
startDate: new Date(),
endDate: new Date(),
locale: {
format: 'MM/DD/YYYY HH:mm'
}
}, function(start, end, label) {
$("#range1").val(start.format('MM/DD/YYYY HH:mm:00')+" - "+end.format('MM/DD/YYYY HH:mm:00'));
});
How I can change dynamically a daterangepicker into a datepicker?
remove the time fields from the code like this
hope it will work for you