【发布时间】:2015-03-11 11:55:14
【问题描述】:
A 有以下基于文档的日期时间选择器 http://demos.telerik.com/kendo-ui/datepicker/angular :
<input kendo-date-picker
k-options="monthSelectorOptions"
ng-model="milestone.estimate"
k-ng-model="dateObject" />
有以下选项:
// SET OPTIONS FOR DATE TIME PICKER
$scope.monthSelectorOptions = {
format: "dd.MM.yyyy",
change: $scope.onDateChange
};
我想问一下如何根据时间戳进行自动日期格式设置:
ng-model="milestone.estimate"
在选择日期之后,从范围内的选择器更新值到时间戳,但在日期选择器中显示格式化日期。
这可能吗?请问我该怎么做?
非常感谢您的建议。
【问题讨论】:
标签: javascript angularjs date kendo-ui datepicker