Hi,
according to this example, i am trying to display a date (stored as UTC - SECONDDATE on the HANA) on my XML-View formatted as UTC:
While the following code displays the date (non-formatted),
<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns:c="sap.ui.core"
xmlns:f="sap.ui.layout.form" xmlns:l="sap.ui.layout" xmlns:t="sap.ui.table"
xmlns="sap.m">
<t:Table id="idUrgencyOfRequests" inset="false" rows="{/ChargingOrders}">
<t:Column width="auto">
<Label text="Arrival" />
<t:template>
<Text text="{ARRIVAL}" />
</t:template>
</t:Column>
this does not (nothing is displayed):
<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns:c="sap.ui.core"
xmlns:f="sap.ui.layout.form" xmlns:l="sap.ui.layout" xmlns:t="sap.ui.table"
xmlns="sap.m">
<t:Table id="idUrgencyOfRequests" rows="{/ChargingOrders}">
<t:Column width="auto">
<Label text="Arrival" />
<t:template>
<Text
text="{path: 'ARRIVAL',
type: 'sap.ui.model.type.DateTime',
formatOptions: {pattern: 'yyyy-MM-dd\'T\'HH:mm:ss',
UTC: true}
}" />
</t:template>
</t:Column>
Any ideas?
Best Regards,
Tobias