I need to let the user set a date. I have a date picker working but the problem I’m having is with the interface.
The options I was able to find was:
- use
ion-input
with[(ngModel)]
to bind with the variable, but with that I can’t find a way to format the date (I want to formatdd/mm/yyyy
) in the interface and I also can’t find a way to disable the manual input (the input must be only by the date picker). - use
ion-label
with{{registerDate | date: "dd"}}/{{registerDate | date: "MM"}}/{{registerDate | date: "yyyy"}}
to format the date, but I can’t find a way to bind it with the variable, so it’s not being updated after setting the date with the date picker.
Does anyone knows a good solution?