1

In Magento 2.4, we want to display date column in grid as a filterable option with date-time picker. Can anybody please suggest a solution?

Thank you

1 Answer 1

0

You can add the below code on this file :

MagentoRoot/vendor/magento/module-catalog/view/adminhtml/ui_component/product_listing.xml

<column name="date">
   <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="filter" xsi:type="string">dateRange</item>
            <item name="editor" xsi:type="string">text</item>
            <item name="label" xsi:type="string" translate="true">Date</item>
            <item name="sortOrder" xsi:type="number">75</item>
        </item>
    </argument>
</column>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.