Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

customizing sap.ui.model.odata.AnnotationHelper.format

Hi,

I am using a xml template for UI5 development.

I get the meta model from the Odata service.

My code in xml view is listed as below. It will return a date and display it on the label control.

<Label text = "{path : 'meta>value', formatter : 'sap.ui.model.odata.AnnotationHelper.format'}"/>

I find that the format function cannot return the date format which I want. (yyyy-MM-dd)

Is there any way to change the format of date?

Thank you in advance!

Former Member
Not what you were looking for? View more on this topic or Ask a question