I'm using .net core api with angular7.
I have a problem to convert dateTime to Date with ngModel
<input class="form-control" name="dateT"
[(ngModel)]="exp.dateTo |date:'yyyy-MM-dd'" #dateT="ngModel" type="date"/>
I'm using .net core api with angular7.
I have a problem to convert dateTime to Date with ngModel
<input class="form-control" name="dateT"
[(ngModel)]="exp.dateTo |date:'yyyy-MM-dd'" #dateT="ngModel" type="date"/>
Instead if two-way binding.Use one way and have a event handler to update User input.
In your ts file add updatedate to update the ngmodel