Setting DateTimePicker to show specific time range e.g. working hours only

前端 未结 4 1347
执念已碎
执念已碎 2020-12-11 18:07

I am trying to configure my kendoDateTimePicker to show 9am to 6pm only. Is this possible?

4条回答
  •  温柔的废话
    2020-12-11 18:59

         var startDateReference = $('.startDate').kendoDateTimePicker({
            format: "dd-MM-yy HH:mm:ss",
            value : new Date(),
         }).data("kendoDateTimePicker");
    
         startDateReference.timeView.options.min = new Date(2000, 0, 1, 7, 30, 0);
         startDateReference.timeView.options.max = new Date(2000, 0, 1, 18, 00, 0);
    

    This is working for me

提交回复
热议问题