-
只選擇時段
$("#endTime").datetimepicker({
// format: 'hh:ii:ss', /* 日期格式化 */
format: 'hh', /* 日期格式化 */
language: 'zh-CN', /* 設置爲中文 */
autoClose: true,
startView: 1,
startDate: new Date(new Date(new Date().toLocaleDateString()).getTime()),
endDate: new Date(new Date(new Date().toLocaleDateString()).getTime() + 24 * 60 * 60 * 1000 - 60),
minView: 1
}).on('hide', function (e) {
});