<mat-form-field class="searchbar" appearance="outline"> <input matInput (keyup)="applyFilter($event)" placeholder="Search ..." #input />
this is my search bar using matInput.
applyFilter(event: Event) { const filterValue = (event.target as HTMLInputElement).value; this.dataSource.filter = filterValue.trim().toLowerCase(); }
this is my search filter function.
Isit able to search date format like 20/02/2024 and the table will show based on the date input without using datepicker.

We can just add the
filterPredicatewith the condition to check the formatted date.I am using an external package
date-fnsto format the date before doing the comparison!full code
html
Stackblitz Demo