1

When i updating date using inline edit in magento2:

Actual date: enter image description here

Db Save: enter image description here

Grid Display After Save: enter image description here

why it display one prev date? How can i resolve it?

0

Try this:

add date Format

<column name="run_time" class="Magento\Ui\Component\Listing\Columns\Date">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="filter" xsi:type="string">dateRange</item>
            <item name="sortOrder" xsi:type="number">60</item>
            <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
            <item name="dataType" xsi:type="string">date</item>
            <item name="label" xsi:type="string" translate="true">Run Time</item>
            <item name="dateFormat" xsi:type="string" translate="true">MM/dd/YYYY hh:mm:ss a</item>
        </item>
    </argument>
</column>
  1. Now delete the records that you find from a ui_bookmark table.
  2. Clear the cache

see more: https://www.screencast.com/t/qePBLRpe27

  • I have tried but Not working – Rutvee Sojitra Aug 13 '18 at 12:17
  • @RutveeSojitra can you please check Answer is updated – Magento Developer Aug 13 '18 at 13:39
  • still same issue facing – Rutvee Sojitra Aug 14 '18 at 4:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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