Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Ion-datetime issue with event

$
0
0

@siva0409 wrote:

<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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>