04-06-2021 1:40 PM - edited 02-04-2024 1:15 AM
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>
<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 '-'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.