I would like to change my endDate same as startDate on date picker when I change startDate but when I create event on startDate button and change Date on startDate it didn't work (I use date picker from CoreUI) here is my example code

If I change startDate so endEnd will change to
// startDate
<div>
<small>{{lang.FromDate}}</small>
<c-date-picker [(date)]="startDate" [ranges]="customRanges"
(ngModelChange)="onDateChange($event)"></c-date-picker>
</div>
my function
onDateChange(date: any) {
// Logic to handle the event when a new date is selected
console.log("Date selected:", date);
}
I try to test print the value but don't have anything in consloe.log(but I try another tag not date picker is work).
endDate change when we change startDate
Instead of
ngModelChange, please try usingdateChange. It is the default method provided in their official document. I have tried it, it works.