Hi!
How could I get the value of the model in normal date format? At this point I’m getting the object what you see below. I don’t want to link them one by one if not neccesary.
My code:
<ion-datetime name="delivery_date" [(ngModel)]="deliveryNoteFormData.delivery_date" required display-format="YYYY-MM-DD" picker-format="YYYY-MM-DD"></ion-datetime>
Model value:
{
"year": {
"text": "2018",
"value": 2018,
"columnIndex": 0
},
"month": {
"text": "01",
"value": 1,
"columnIndex": 1
},
"day": {
"text": "01",
"value": 1,
"columnIndex": 2
}
}
Thanks