Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAB XSLT Parse ISO 8601 Date with offset to Timestamp

Former Member
0 Kudos
1,248

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

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos
432

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)

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos
433

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)