In magento 2 sales order grid default date purchase filter is there, but i want to filter with date and time both. please help me how to do.
I tried like below but i didn’t get any solution.
Thanks
<column name="created_at" class="Magento_Ui/Component/Listing/Columns/Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="timezone" xsi:type="boolean">false</item>
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="label" xsi:type="string" translate="true">Created</item>
<item name="dateFormat" xsi:type="string">MMM d</item>
<item name="options" xsi:type="array">
<item name="showsTime" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</column>
2
Answers
The issue in dateFormat item. Use below code this will work for you.
Use this one instead