datatables two date ranges filtering in two columns
<p>I have a table with two date columns I can use date range in one column which is aData[3] like this</p>

<pre><code>$.fn.dataTableExt.afnFiltering.push(
    function(oSettings, aData, iDataIndex){
        var dateStart = parseDateValue($("#fromDate").val());
        var dateEnd = parseDateValue($("#toDate").val());
        var evalDate= parseDateValue(aData[3]);
        if ( evalDate &gt;= dateStart &amp;&amp; evalDate &lt;= dateEnd) {
            return true;
        }
        else {
                return false;
        }

 });

 function parseDateValue(rawDate) {
     var dateArray= rawDate.split("-");
     var parsedDate= dateArray[2] + dateArray[1] + dateArray[0];
     return parsedDate;
 }

var table = $('#data').DataTable({
  "lengthMenu": [[25, 50, -1], [25, 50, "All"]],
  "order": [[ 0, "desc" ]],
  "paging" : true,
  "scrollX": true,
  dom: 'Bfrtip',
  buttons: [
    'excel', 'print'
  ]
});

 $("#fromDate").keyup ( function() { table.draw(); } );
 $("#fromDate").change( function() { table.draw(); } );
 $("#toDate").keyup ( function() { table.draw(); } );
 $("#toDate").change( function() { table.draw(); } );
</code></pre>

<p>Now I want to add another date column which will be aData[5] and I want to add another date range filter to it. How can I filter table with two data range filters using other date pickers which are #fromDate2 and #toDate2 to search in aData[5]?</p>