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 format conversion

Former Member
0 Likes
282

hi

my output in txt file is having some date fields and in that the date format as coming is yyyymmdd

but i need to generate the fields in output as in format ddmmyyy

pls suggest how to do the same or which function module to acheive the same

regards

Nishant

1 ACCEPTED SOLUTION
Read only

DirkAltmann
Active Participant
0 Likes
257

Hi Nishant,

change the date field in an character field and write the date field in this character field.

Sample:

data gf_strdate(10) type c.

write sy-datum to gf_strdate DD/MM/YYYY.

regards

Dirk

1 REPLY 1
Read only

DirkAltmann
Active Participant
0 Likes
258

Hi Nishant,

change the date field in an character field and write the date field in this character field.

Sample:

data gf_strdate(10) type c.

write sy-datum to gf_strdate DD/MM/YYYY.

regards

Dirk