Hi,
I have a date field that is retrieved by a rest service and is of type date. This field is retrieved to a scope variable that has the format yyyy-mm-dd . It is shown in a input field of type date, format dd-mm-yyyy. The scope variable is placed in ng-model directive of the input field. But when the value is retrieved I receive the error message "Error: [ngModel:datefmt] ". I think it's a date format error. How can i solve it?
Code: Select all
Thanks.