Answers for "bootstrap daterangepicker remove default date"

0

bootstrap daterangepicker remove default date

$('.date_range_picker').daterangepicker({
    autoUpdateInput: false,
    locale: {
        format: 'DD/MM/YYYY',
        cancelLabel: 'Clear'
    }
});

$('.date_range_picker').on('apply.daterangepicker', function(ev, picker) {
    $(this).val(picker.startDate.format('MM/DD/YYYY') + ' - ' + picker.endDate.format('MM/DD/YYYY'));
});
Posted by: Guest on December-20-2020

Browse Popular Code Answers by Language