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: 
Read only

DATE Conversion

venkateswaran_k
Active Contributor
0 Likes
602

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
526

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

Regards,

Raymond

Read only

Former Member
0 Likes
526

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

Read only

Former Member
0 Likes
526

Hi Venkat,

How you are updating this table ?

Regards,

Avish Mittal

Read only

ThomasZloch
Active Contributor
0 Likes
526

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

Thomas