ion-datetime cancel text code example
Example 1: ion-datetime cancel text
<ion-datetime displayFormat=“MM/DD/YYYY” [(ngModel)]=“birthday” cancelText="…" doneText="…">
Example 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>
Example 3: ionic format date
{{valueDate | date: 'dd/MM/yyyy'}}