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: 

Need to change the timestamp to date format

divsmart
Participant
0 Kudos
635

Dear Experts,

I need to convert the Timestamp to date format.

Example:

Timetstamp : 01/01/1950 00:01:00

Need to convert gets like 19500101 (YYYYMMDD).

Please provide any FM or some piece of code..

Thanks ,

Senthil

5 REPLIES 5

Sandra_Rossi
Active Contributor
549

Did you really search before posting?

Look at ABAP Keyword Documentation - CONVERT TIME STAMP ...

Of course, you'll have to make sure the data type of the time stamp is TIMESTAMP or TIMESTAMPL (a simple assignment between data types should suffice).

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
549

And the usual question: why "ABAP Connectivtiy"? Doesn't look like HTTP- or RFC-communication is used at all here...

Sandra_Rossi
Active Contributor
0 Kudos
549

It's very simple to go from a string containing 01/01/1950 to 19500101. You have to use the classic "substring" which exists in all programming languages (substring, +offset(length), etc.)

Shruthi29
Explorer
0 Kudos
549

Hi Senthil,

Please Refer to this post .

https://answers.sap.com/questions/5558983/index.html

Regards,

Shruthi.

matt
Active Contributor
549

This is why just posting links isn't a good thing. The link refers to a different problem from the one posted.