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.