Skip to Content
avatar image
Former Member

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 17, 2015 at 05:19 AM

    Hi Frank Zhou ,

    Even I am facing the same issue. Did you got any solution? please share.

    Regards,

    Puneet Jain

    Add comment
    10|10000 characters needed characters exceeded