Application Development 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: 

DATE Conversion

venkateswaran_k
Active Contributor
0 Kudos

Hi

I have one basic requirment. Please do not lock it, I searched the blog but not geting the exact.

I have one ztable have the values stored as Mar 31 2012  6:45PM. It is a char data type.

I want to convert this to dd/mm/yyyy HH:MM:SS format

Can someone help me.

Moreover, is there any datatype available as datetime in ABAP.

regards,

Venkat

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

For date+time fields look for documentation on timestamps in Abap documentation.

Regards,

Raymond

Former Member
0 Kudos

Hi Venkat,

Please use the function module FORMAT_DATE_4_OUTPUT and give the input as example

DATIN: 20121025

FORMAT: DD/MM/YYYY

format should be which ever format you required and the output for the above example is 25/10/2012

Regards,

Karthik

Former Member
0 Kudos

Hi Venkat,

How you are updating this table ?

Regards,

Avish Mittal

ThomasZloch
Active Contributor
0 Kudos

Basic requirement, obviously not enough research and no follow-up in 8 days -> locked.

Thomas