cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Defalut time is displaying for SmartTable in the date column

former_member213400
Active Participant
0 Kudos
2,102

Hello Experts and rohit.chokhani

I am facing the issue with default time for Date column in SmartTable. please find the below screenshot for same.

rohit.chokhani I found similar issue with you too, could you please share the solution/cod snippet so that I can try and check if the formatter works or not.

thank you in advance.

View Entire Topic
0 Kudos

Hi Kiran,

You can use a formatter for the field.

Use the below code and you should be able to solve your problem -

<Text text="{path:'viewData>CreatedOn', type:'sap.ui.model.odata.type.DateTime', formatOptions: { pattern: 'MM-dd-yyyy'},constraints: {displayFormat: 'Date'}}"/>