reactive-table
reactive-table copied to clipboard
How to filter date range?
Hello, I want to filter the database column with two date ranges. For an example from YYYY-MM-DD to YYYY-MM-DD, with datepicker. like this : http://yadcf-showcase.appspot.com/DOM_source.html
You'll need to use custom filters for this.
I have an example of a date filter here: https://github.com/aslagle/reactive-table/blob/master/examples/advanced-filters/date_filter.js and https://github.com/aslagle/reactive-table/blob/master/examples/advanced-filters/date_filter.html
You can set the filter to gte or lte instead of a single date, as in https://github.com/aslagle/reactive-table/blob/master/examples/advanced-filters/greater_than_filter.js