cancel
Showing results for 
Search instead for 
Did you mean: 

Convert XSDDATETIME_ISO to DATS

konstantinos_vassiliadis
Active Participant
0 Kudos

Hello experts,

I want to convert a value from XSDDATETIME_ISO to DATS. The original value is, for example, 2022-10-26T00:00:00.000+03:00 and I want to get the DATS equivalent. I looked for classes and function modules either directly or indirectly - that is, convert to another data type and eventually end up to DATS - but no result.

Does anyone know a solution to propose?

Thank you in advance,

Konstantinos Vassiliadis

View Entire Topic
konstantinos_vassiliadis
Active Participant
0 Kudos

Hello,

I used the following static class method

cl_hrpadno_acf_dd_timestamp=>datetime_to_timestamp

to get the timestamp. Then, to get the date I used the following

cl_abap_tstmp=>systemtstmp_utc2syst

Konstantinos