<p>The current format is: {{ item.expires_at }}</p> # 2019-06-30T23:30:01+00:00
The formatted date in the input element is non-editable, which makes it difficult for me to make any changes. Is there a way around this?
<input type="text" ng-model="item.expires_at | date:'dd/MM/yyyy HH:mm:ss'">
My lack of front-end skills is hindering my progress on this issue. From some suggestions I found, you can try the following example. However, when I attempted it, the input remained empty.
Reference: 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 have checked the Template Syntax documentation but did not find a solution yet.