fnFilter with From date and To date

fnFilter with From date and To date

udaymmahajanudaymmahajan Posts: 1Questions: 0Answers: 0
edited May 2012 in General
Hi
I want to display result as per the selection of From date and To Date
In UI i have used to DatePicker and a Button (to Get Result) ,on Button click I want to display result.
For this I have used the code as follows

var fromdate = '';
var todate = '';
var date_range = '';

$("#GetFromandToDateResult").click(function () {

fromdate = $("#From_Date").val();
todate = $("#To_Date").val();
date_range = date_range + fromdate + '|' + todate;

oTable.fnFilter(date_range, 2, true);
});

But the above code is not displaying any result.
Please suggest me how can I display result.
This discussion has been closed.