SAPUI5: Output formatted date
问题 I´ve developed an SAPUI5 application with an XML-View. Now I want to format a date correctly. I tried it the following way: <Text text="{ path: 'model>LastCommDate', type: 'sap.ui.model.type.Date', formatOptions: { pattern: 'yyyy/MM/dd' } }" /> Error message: datajs.js:17 Uncaught TypeError: j.getTime is not a function Without the formatOptions and type I get the unformatted output. <Text text="{ path: 'model>LastCommDate' }" /> Output: 2015-06-16T00:00:00 EDIT: Same question for Time : How