Hi,
When I have a date input like this:
<ion-datetime formControlName="startTime" displayFormat="HH:mm" pickerFormat="HH:mm" [(ngModel)]="startDate"></ion-datetime>
I get a datepicker like this: Image
But when I show an alert with an time input like this:
inputs: [
{
name: 'endtime',
type: 'time',
value: endTime.toLocaleTimeString()
}
]
I get an editor like this: image
I really like this editor and I want to able to use this editor in the first situation too.
So I’ve tried this, but it didnt work:
<ion-datetime formControlName="startTime" displayFormat="HH:mm" pickerFormat="HH:mm" [(ngModel)]="startDate" type="time"></ion-datetime>
Is there a way to add a date/time input in a form with the editor you see in the second image?