Skip to Content
author's profile photo Former Member
Former Member

Format date as UTC does not work

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:

SAPUI5 Explored

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 25, 2016 at 12:46 PM

    is it a caching issue? can you close your browser windows completely and retry??

    can you show a screenshot?

    Add a comment
    10|10000 characters needed characters exceeded