Custom filtering - range search - On Start date
Custom filtering - range search - On Start date
Hi,
I have a question regarding custom filtering. The example shows how to filter by age. I am trying to create the same concept by filtering on the column "start date" instead of age for the example.
http://www.datatables.net/examples/plug-ins/range_filtering.html
Thanks for all the help.
This discussion has been closed.
Answers
You can try out my yadcf plugin, it has range_date filter see showcase (third column) http://yadcf-showcase.appspot.com/DOM_source.html (see code snippet below the table) it requires a jquery ui datepicker included on page too...
Fundamentally you would need to convert the date into a searchable number that you could then apply some simple logic to that will do the range search. How you convert from a date format into a decimal will depend upon your date format, but you might want to take a look at using moment.js which will convert most date formats.
Allan