Binding date value to ng-model in angular kendo date picker

后端 未结 2 1878
陌清茗
陌清茗 2021-02-09 10:07

I have an api which return the date in this format \"014-08-26T15:10:45.402Z\" i am using angular kendo ui .The problem i am facing is the date is not getting bound to the kendo

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-09 10:33

    you can use something like this

    Select date:

    var startDate = new Date(); $scope.monthSelectorOptions = { value: startDate, format: "dd/MM/yyyy h:mm tt", parseFormats: ['ffffd MMM dd yyyy'], animation: { close: { effects: "fadeOut zoom:out", duration: 300 }, open: { effects: "fadeIn zoom:in", duration: 300 } }, culture: "de-DE", };

    And here is complete solution on kendo dojo

提交回复
热议问题