0
<p-table #dt responsiveLayout="stack" [value]="patients" [rows]="5" [paginator]="true"
                    [globalFilterFields]="['FirstName','LastName','ContactNumber','Email', 'DateOfBirth']" [rowHover]="true"
                    dataKey="userId" currentPageReportTemplate="Showing {first} to {last} of {totalRecords} patients"
                    [showCurrentPageReport]="true">

 <ng-template pTemplate="body" let-patient>
                        <tr>
                            <td> {{patient.userId }} </td>
                            <td>{{patient.FirstName}} {{patient.LastName}}</td>
                            <td>
                        <tr> {{patient.ContactNumber}}</tr>
                        <tr> {{patient.Email}}</tr>
                        <td> {{patient.DateOfBirth | date:'shortDate'}}</td>

In the search box, if i enter partial or full date Ex: 8/ or 8/10 or 8/10/80 it has to show only those records with this date. If i give / , search is not working. Angular - 14.2 Primeng-14.2.3 Any help is appreciated.

Selvi
  • 1
  • 1
  • https://stackoverflow.com/questions/70791279/how-to-global-filter-dates-with-text-search-in-primeng this solution worked. but didnt use applyFilterGlobal( ) method. – Selvi Apr 01 '23 at 18:34

0 Answers0