cancel
Showing results for 
Search instead for 
Did you mean: 

How to set another Date format to List-View in Backoffice

ripalmieri
Discoverer

Hi everyone, I'm looking to change the Creation Time's Date format in this list view, how can I change it to dd-MM-yyyy format in -backoffice-config.xml?

I made this list view in the config.xml:

<context type="MyCustomObject" >
   <context merge-by="type" parent="GenericItem" component="listview">
      <list-view:list-view>
         <list-view:column qualifier="code"/>
         <list-view:column qualifier="creationtime"/>
      </list-view:list-view>
</context>
</context>

Accepted Solutions (1)

Accepted Solutions (1)

priyanka_gupta2692
Participant
<context parent="GenericItem" type="AbstractOrder" component="listview">
  <list-view:list-view>
    <list-view:column qualifier="code" />
    <list-view:column qualifier="focusOrderNumber" />
    <list-view:column qualifier="date.getDate()+'-'+date.getMonth()+1+'-'+(date.getYear()+1900)" label="type.AbstractOrder.date.name"/>
    <list-view:column qualifier="totalPrice" />
    <list-view:column qualifier="shipToUnit"/>
    <list-view:column qualifier="user" />
  </list-view:list-view>
</context>

Note:You can specify any delimiter in place of '-'

Answers (1)

Answers (1)

mjveerhuis1
Active Contributor
0 Kudos

Hi Riccardo,

In which application are you working and in which list view? (it is not clear as you added quite some tags)

Did you check the Settings of the application? They hold a Date Format selection option.

Kr.

MJ

ripalmieri
Discoverer
0 Kudos

I'm working on the Hybris Backoffice section

priyanka_gupta2692
Participant
0 Kudos

Hi ri.palmieri ,

Did you get the solution for above request. How to change data format to List-View in Backoffice.