I have a date time object with this format “2019-07-31T08:30:00+08:00” and I need to display this in my cards as DD MMM YYYY HH:mm.
When I checked the documents I found
<ion-datetime displayFormat="MMM DD, YYYY HH:mm" [(ngModel)]="event.StartDate"></ion-datetime>
but looks like this is not a way to display but its for input/widget.
Any idea how to display the date?
if I use {{datefield | date:‘medium’}} as per angular 2 pipes, I am getting an error
Invalid argument ‘2019-09-11T08:30:00+08:00’ for pipe ‘DatePipe’