Hello!
I have a problem with ionic datetime. If i try to push the datetime value to my firebase database i see the following there: 2017-10-12T16:23:00Z
I am trying to format this to a more user friendly date with moment.js but i can’t really format it before pushing it to my database:
html:
<ion-datetime displayFormat="YYYY-MM-DD HH:mm" pickerFormat="YYYY-MM-DDTHH:mm" [(ngModel)]="fogasDatuma"></ion-datetime>
ts:
this.firebasedb.list("/fogasok/")
.push({
datum:this.fogasDatuma.moment().format('LL'),
});
class:
export class FogasfeltoltesPage {
fogasDatuma