Format ISO date (yyyy-MM-ddThh: mm: ss.sssZ) to be displayed in INPUT (dd / mm / yyyy hh: mm)

0

The server hands me the date in ISO format (yyyy-MM-ddThh: mm: ss.sssZ). How do I make this date appear in the input format with dd / mm / yyyy hh: mm?

<input type="date" class="form-control" ng-model="tarefa.createdAt" />

I'm using angularJS v1.6.

    
asked by anonymous 22.03.2018 / 20:03

1 answer

0

When I went through this I found the recommendation to use angular-datetime

<input type="date" class="form-control" date='dd-MM-yyyy HH:mm' ng-model="tarefa.createdAt" />

link

    
22.03.2018 / 20:49