简体   繁体   中英

Not getting minutes when using datetimepicker

I am using jQuery datetime picker and I want to pick only time without date , when I click on input I get only hours . How I can resolve this?

$(document).ready(function() {
            $.datetimepicker.setDateFormatter('moment');
            $(".timepicker").datetimepicker({
                datepicker: false,
                minuteStepping: 15,
                format: 'hh:mm tt',
                pickTime: true,
                defaultDate: new Date(1979, 0, 1, 8, 0, 0, 0),
                language: 'en',
                use24hours: true,
                timeOnly: true,

            });
        })

这就是我得到的

Actually I want to select minutes too, but I don't get that as option.

Did you try to use their timepicker?

https://xdsoft.net/jqplugins/timepicker/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM