Custom filtering - range search - On Start date

Custom filtering - range search - On Start date

robbsandyrobbsandy Posts: 10Questions: 4Answers: 0

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.

Answers

  • daniel_rdaniel_r Posts: 460Questions: 4Answers: 67

    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...

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    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

This discussion has been closed.