Ion-datetime 2018-01-21T14:25:18.792Z format

Guys i have a very simple problem.

My ion-datetime value is this: 2018-01-21T14:25:18.792Z

I just want a simple YYYY-MM-DD HH: mm format. I changed this so the display is perfect but the value is still saved in the format above :frowning:

  <ion-datetime displayFormat="YYYY-MM-DD HH:mm" pickerFormat="YYYY-MM-DDTHH:mm" [(ngModel)]="fogasDatuma"></ion-datetime>

I also need gmt+1

You can try like this
{{movie.start | date: ‘dd/MM/yyyy H:mm’ }} ------- 21/01/2018 09:00:

I hope your problem will be fixed.
Thank you

1 Like

thank you my friend :slight_smile: