Error: [ngModel:datefmt] Expected `2015-05-29T19:06:16.693209Z` to be a date - Angular

前端 未结 8 699
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 07:10

I\'m working on angularapplication with Django with rest-framework..

The app receives it\'s info with json from the server.. O

8条回答
  •  情话喂你
    2020-11-29 07:35

    I had this error and i directly used the object: I am posting the solution witch i carried out:
    1:$userData.dob=new Date(userData.dob); 2:$scope.edit.userdob=userData.dob; before 1 i faced above error then i directly created the object and assigned it to the edit scope and the problem got resolved.

提交回复
热议问题