Options for filtering a date range column
Options for filtering a date range column
![jxb](https://secure.gravatar.com/avatar/3c0f86ce10df88d83d1c0cbda91836e8/?default=https%3A%2F%2Fvanillicon.com%2F3c0f86ce10df88d83d1c0cbda91836e8_200.png&rating=g&size=120)
This post is not only intended to help me get my problem addressed but to also answer the question, what other ways are there to go about filtering a column based on a date-range.
The current approach I am taking is to use the custom filtering plug-in as in [this] https://datatables.net/examples/plug-ins/range_filtering.html example
The table was loaded fine with AJAX before adding the $.fn.DataTable.ext.search.push( ... )
block.
Here is my jsFiddle
Also, I'm relatively new to JavaScript and this is my very first time working with DataTables.
There are also a few additional questions in the comments if anybody feels the urge to enlighten me.
Anybody?
Answers
I've also tried to use
var min = $("input[id$='dateFrom_DateControl']").datepicker().format("MM/d/yyyy");
var max = $("#input[id$='dateTo_DateControl']").datepicker().format("MM/d/yyyy");
(added
.datepicker()
) is this necessary?