How to call a function when datetime variable changes

I am trying to execute a function every time the user selects a new datetime. Right now, I am trying to use (ngModelChange) but this keeps executing the function passing in the prior value and not the current value. Any ideas would be greatly appreciated thanks!

  <ion-item>
    <ion-label>Start Time</ion-label>
    <ion-datetime displayFormat="h:mm a" (ngModelChange)="calcStartEndTime(day.index)" [(ngModel)]="day.startDate"></ion-datetime>
  </ion-item>
1 Like

The datetime component emits (ionChange).

Thank you that worked! I am a bit new to ionic 2… I did not realize there was an ionChange. Very helpful!