I am new to development and I have been working on this thing. I am using ion-datetime to get some input dates. After, I would like my data charts to be displayed after hitting a button "search" according to the dates I entered (knowing I have a backend implemented which contains the data to be displayed on the (here is an image of how the ion-datetime is displayed1) chart. Should I create an endpoint or something? Please somebody help me.
here is the html code
<ion-col size="6">
<ion-item lines="full">
<ion-label>From</ion-label>
<ion-datetime [max]="'2100-12-31'" display-format="DD/MM/YYYY" [(ngModel)]="dateValue1"></ion-datetime>
</ion-item>
</ion-col>
<ion-col size="6">
<ion-item lines="full">
<ion-label>To</ion-label>
<ion-datetime [max]="'2100-12-31'" display-format="DD/MM/YYYY" [(ngModel)]="dateValue2" ></ion-datetime>
</ion-item>
</ion-col>
</ion-row>
<ion-button (click)="search()"> <ion-icon slot="start" name="search"></ion-icon>Search</ion-button>
</ion-grid>