Reputation: 143
I'll make this concise. I have the following object:
obj = {date: 2017-04-05T17:48:20.084Z}
How do i format j.date ? I've tried the following code bellow but it does work
<ion-item *ngFor='let j of obj'>
<ion-datetime displayFormat="MM/DD/YYYY">{{j.date}}</ion-datetime>
</ion-item>
Upvotes: 1
Views: 2099