Skip to Content
0

ABAB XSLT Parse ISO 8601 Date with offset to Timestamp

Nov 27, 2017 at 10:06 AM

25

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Nov 27, 2017 at 11:37 AM
0

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)

Share
10 |10000 characters needed characters left characters exceeded