We have a requirement to add a custom filter for date field. So that we can filter using dateRange filter and also by selecting from a dropdown which has these values (today, this week, tommorow) etc. In Magento 1 we did this by creating custom class but in Magento 2 I am not getting how can I filter my date in such a manner. Below is the image for same. Can anybody suggest me on the same?
Magento2 – Add Custom Filter to Grid for Date
adminhtmlfiltermagento-2.1.3magento2ui-grid
Best Answer
Use
Magento_Ui/js/grid/columns/date
component for date filter in UI gridNote: Replace
updated_at
to your column source nameOutput: