How to show only time picker in date range picker

dev1 picture dev1 · Sep 8, 2016 · Viewed 13.3k times · Source

I am using daterange picker i want show only timepicker but its not working following is the link which is i am using for reference.

http://www.daterangepicker.com/

Answer

James De Souza picture James De Souza · Apr 20, 2018
$('#duration').daterangepicker({
            timePicker: true,
            timePicker24Hour: true,
            timePickerIncrement: 1,
            timePickerSeconds: true,
            locale: {
                format: 'HH:mm:ss'
            }
        }).on('show.daterangepicker', function (ev, picker) {
            picker.container.find(".calendar-table").hide();
        });