<p>Original format: {{ item.expires_at }}</p> # 2019-06-30T23:30:01+00:00
Formatted date in input element becomes non-editable so unfortunately I cannot edit it. Is there a way to achieve this?
<input type="text" ng-model="item.expires_at | date:'dd/MM/yyyy HH:mm:ss'">
Having no front-end skills doesn't help but as far as I can see from some answers, we can use example below. However, when I use it, I get no data in input so input element is just empty.
Ref: Using Pipes within ngModel on INPUT Elements in Angular2-View
<input type="text"
[ngModel]="item.expires_at | date:'dd/MM/yyyy HH:mm:ss'"
(ngModelChange)="item.expires_at=$event" />
I read Template Syntax but couldn't find a solution.