[Solved] How to format “MM/yyyy” pattern to locale-dependent ” / yyyy” in SAPUI5?
Try with: <Text text=”{ path: ‘Period’, type: ‘sap.ui.model.type.Date’, formatOptions: { pattern: ‘MMM / yyyy’, source: { pattern: ‘MM/yyyy’ } } }” /> Here is a working demo (Click on Run code snippet): sap.ui.getCore().attachInit(() => sap.ui.require([ “sap/ui/core/Fragment”, ], Fragment => Fragment.load({ definition: `<Text xmlns=”sap.m” text=”{ value: ’12/2019′, type: ‘sap.ui.model.type.Date’, formatOptions: { pattern: ‘MMM / yyyy’, source: … Read more