bootstrap-datetimepicker icon indicating copy to clipboard operation
bootstrap-datetimepicker copied to clipboard

Ability to disable date selection and select only time

Open othmoz opened this issue 10 years ago • 7 comments

Is there a way to do this ? an option like pickDate: false would be great in case it's a time selection field

othmoz avatar Oct 30 '14 17:10 othmoz

I think this is an important missing feature.

after some hacks, at the moment i use this:

               $(this).datetimepicker({
                    format: 'hh:ii',
                    minuteStep: 15,
                    autoclose: true,
                    minView: 0,
                    maxView: 1,
                    startView: 1,
                });
                $(this).data('datetimepicker').picker.addClass('timepicker');
.timepicker{
    overflow: hidden;
}
.timepicker .datetimepicker-hours,
.timepicker .datetimepicker-minutes > table{
    margin-top: -40px;
}

KernelFolla avatar Nov 18 '14 18:11 KernelFolla

Ya , It is essential feature to select only time or date.

kuldipem avatar Nov 24 '14 06:11 kuldipem

Yes, this would be great, @KernelFolla thank you for workaround :+1:

davidwoods avatar Nov 25 '14 16:11 davidwoods

Yes, it is "must be" feature. I need that.

YakupIpek avatar Jan 20 '15 23:01 YakupIpek

No one get it? I've tried changing "timepicker" to display:none, but i cant take the date that i selected without finish the process.

Trying... trying...

maykelesser avatar Feb 20 '15 12:02 maykelesser

cheer! +1

prawee avatar Apr 29 '16 10:04 prawee

+1

fernandominardi avatar Dec 27 '17 18:12 fernandominardi