【发布时间】:2016-10-14 09:48:05
【问题描述】:
我的html页面中有这个
<input id="date" ng-model="config.selectedData.date" />
这在我的控制器中
$timeout(function () {
$("#date").kendoDateTimePicker({
format: "yyyy-MM-dd hh:mmtt"
});
if ($("#" + key).data("kendoDateTimePicker") != undefined)
$("#" + key).data("kendoDateTimePicker").readonly();
}, 50);
我的模型 $scope.config.selectedData.date = "0000-12-31T22:00:00.000Z"
我想看到类似:'1/1/0000 00:00'
但我看到:'Mon Jan 01 1 00:00:00 GMT+0200 (GTB Standard Time)'
【问题讨论】:
标签: angularjs kendo-ui formatdatetime