Skip to Content
avatar image
Former Member

ABAB XSLT Parse ISO 8601 Date with offset to Timestamp

We get timestamp data in XML as follows:

<creationtime>2017-11-27T03:01:53.593+01:00</creationtime>

How can we transform (XSLT) this to a valid UTC timestamp?

Note, if we chop off the first 14 chars SAP gets a timestamp but it's incorrect because of the missing +01:00

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 27, 2017 at 11:37 AM

    I think there's no standard way to do that -> cf ABAP Documentation asXML - Mapping of Reference Variables and Referenced Objects 7.51

    But you can create your own custom XSL method to transform it -> cf SAP Library: additional SAP statements (sap:call-external)

    Add comment
    10|10000 characters needed characters exceeded