cancel
Showing results for 
Search instead for 
Did you mean: 

How do we set the date formatting for a columns in a Fiori Elements list report

js2
Product and Topic Expert
Product and Topic Expert
0 Kudos

If we generate a Fiori Elements list report that contains a date field... there does not seem to be any annotations that allow us to set the display formatting like we can with a normal sapui5 application.

So for example I just get this when run in the WebIDE:

9/13/2017

When deployed to or local Gateway Server we get:

12.09.2017

Does anyone know how we can change these to be: "12 Sep 2017" for example?

former_member707385
Participant
0 Kudos

Hi Jason,

Facing same issue. Did you get any solution for this?

Regards,

Anand

js2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi anand.rai01 - I just didn’t custom column where you have full control as per the answer below.

Accepted Solutions (0)

Answers (1)

Answers (1)

akshaya_p
Contributor
0 Kudos

Hi Jason,

Extensions can help you. Add a column extension and use this to display date

<m:Text text="{path : 'datefrombackend', type : 'sap.ui.model.type.Date', formatOptions: { pattern: 'MMM dd,yyyy HH:mm' }}"/>