Search code examples
dateannotationsformattingsapui5

Format Date field in Smart Table SAP Ui5


How to format the Date field in Smart Table?

Oct 17, 2017 to 17/10/2017


Solution

  • The only way I found was by making it a customData and formmatting it

            <customData>
                <core:CustomData key="p13nData" value='\{"columnKey": "Erdat",  "leadingProperty": "Erdat"}' />
            </customData>
    

    then

            <Text text="{parts: ['Erdat'],formatter: '.formatDate'} " />
    

    this way I was able to format my data