how to display only time in jquery datepicker?

后端 未结 7 1664
庸人自扰
庸人自扰 2020-12-17 10:02

I want to display only time from jquery datepicker. my current code is

$(\'#field-start_t_a\').datetimepicker({
  showDate:false, 
   showSecond: true,

   t         


        
7条回答
  •  失恋的感觉
    2020-12-17 10:57

    Just adding a simple solution. By adding only this , you can get a time only date picker

    $('YOUR_SELECTOR').datetimepicker({
            format: "HH:mm"
    });
    

    Simple solution, hope it helps.

提交回复
热议问题