Options for filtering a date range column

Options for filtering a date range column

jxbjxb Posts: 6Questions: 4Answers: 0
edited May 2014 in Free community support

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

  • jxbjxb Posts: 6Questions: 4Answers: 0

    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?

This discussion has been closed.