<ion-datetime (ionChange)=“changedate(details.date,$event)” type=“date” id=“datevalue” name=“date” min={{startDate}} max={{nextDate}} [(ngModel)]=“details.date” placeholder=“Pick Date”>
changedate(date, e) {
date = this.datepipe.transform(this.details.date, “dd-MM-yyyy”)
this.getnewdate = new Date(e.target.value).getUTCDay();
console.log();
}
ERROR TypeError: Cannot read property ‘value’ of undefined
thanks in advance