daterangepickeras a filter instead of the normal free-text input. Note that you must import all the dependencies (JQuery + moment.js + daterangepicker) GLOBALLY, i.e on the
windowscope. You can check if this is so by typing
typeof $().daterangepickerin the console. If it returns function you are good to go. To tell the plugin which columns should be treated as date columns use the
momentobject for the filtering to work. You can use the
toMomentFormathelper option to do that for you. It accepts the current format of the dates in your dataset, and uses it to convert those dates to moment objects. E.g, if you have a
created_atcolumn with a date like 2017-12-31, you can use
toMomentFormat: 'YYYY-MM-DD'. To determine the presentation of the dates use the
templatesoption to "massage" the date you get from the server into the desired format.