title: Apply custom In Between Filter for PrimeNG: Datatable
body: <p>Consider a scenario where I am displaying a START and END YEARs in a <code>p-dataTable</code> column. </p>
  
  <p>Here is the column code snippet:</p>
  
  <pre><code>&lt;p-column field="startYear" header="Active Period" filterPlaceholder="Search" [filter]="true"&gt;
    &lt;ng-template let-col let-manual="rowData" pTemplate="body"&gt;
      {{record.startYear}} - {{record.endYear}}
    &lt;/ng-template&gt;
  &lt;/p-column&gt;
  </code></pre>
  
  <p>Which displays as:</p>
  
  <pre><code>|--------------|
  | ActivePeriod |
  |--------------|
  |2015 - 2017   |
  |--------------|
  |2012 - 2016   |
  |--------------|
  |2023 - 2025   |
  |--------------|
  |2024 - 2030   |
  |--------------|
  |2011 - 2013   |
  |--------------|
  </code></pre>
  
  <p>I want to apply a custom filter so that when user types in an YEAR the table should only show the records which falls in that Active period.</p>
  
  <p>Which means I have to write a logic where I have check if the user searched year is in between each active period.</p>
  
  <p>How can I achieve this?</p>