Answers for "ionic date time as same as input"

2

ion datetime time current set

public date:any = new Date().toISOString();
...
<ion-datetime [(ngModel)]="date"
    displayFormat="MMM DD, YYYY HH:mm"
    formControlName="myDate">
</ion-datetime>
Posted by: Guest on November-29-2020
1

ionic datepicker done

<ion-datetime displayFormat="h:mm a" doneText="Okay"></ion-datetime>
Posted by: Guest on December-03-2020

Browse Popular Code Answers by Language