ion datetime access properties on function code example
Example 1: 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 2: ionic format date
{{valueDate | date: 'dd/MM/yyyy'}}