cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a date and time filter in sales order grid in magento 2.3.5

How to add a date and time filter in sales order grid in magento 2.3.5

does anyone know how to add date and time filter for sales order grid filter? Basically there can filter with date but no option to filter with time

1 REPLY 1

Re: How to add a date and time filter in sales order grid in magento 2.3.5

Try to add below field to add date filter in sales order grid.

<column name="created_at" class="Magento\Ui\Component\Listing\Columns\Date" component="Magento_Ui/js/grid/columns/date">
  <settings>
    <filter>dateRange</filter>
    <dataType>date</dataType>
    <label translate="true">Created</label>
  </settings>
</column>