kendoui 时间选择框
1、选择年月日
var fromDay = new Date();
fromDay.setDate(fromDay.getDate() - 1);
$("#kdoData").kendoDatePicker({
depth: "year",
format: "yyyy-MM",
value: fromDay
});
2、选择年月
var fromDay = new Date();
fromDay.setDate(fromDay.getDate());
$("#kdoData").kendoDatePicker({
start: "year",
depth: "year",
format: "yyyy-MM",
dateInput: true,
value: fromDay,
footer: "今日 - #: kendo.toString(data, 'd') #"
});
3、选择时分秒
$('#kdoData').kendoTimePicker({
format: "HH:mm:ss",
interval: 60,
timeFormat: "HH:mm:ss",
value: "23:00:00"
});