Skip to Content
Apr 22, 2017 at 09:37 AM

How to Format the Date&time in SAPUI5 XML View..??


Hi All,

How to format the Date and time in sapui5 application. Formatter option is not working. Please suggest some idea. Shared the tried code also. The output from oData is:


new sap.m.ObjectAttribute({ text:"{ path: 'Approved_DateTime', type: 'sap.ui.model.type.DateTime',formatOptions: {style: 'medium'}}" });

Expected Output:

Apr 22, 2017 12:20:29