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

Former Member
0 Kudos

function module which convert date format in required date format means system date to user friendly like dd.mm.yyyy

mm/dd/yyyy yyyy/mm/dd like 8 type..

4 REPLIES 4

Simha_
Employee
Employee
0 Kudos

Hi,

Use the F.M. <b>CONVERT_DATE_TO_EXTERNAL</b>

Reward if helpful..

Cheers,

SImha.

gopi_narendra
Active Contributor
0 Kudos

use the function moduel convert_date_to_external.

Regards

- Gopi

Former Member
0 Kudos

Hi,

Check with this.

WRITE sy-datum USING EDIT MASK '__/__/____' TO lv_sydatum.

Regards

Satish

Former Member
0 Kudos

Hi,

You cna use CONVERT_DATE_TO_EXTERNAL

or you can write these lines in your code to get the user format, this will support all the SAP formats

DATA: date_1 like sy-datum.

data: Date2(8).

data: date_3(10).

date_1 = SY-DATUM.

Move DATE_ 1 to DATE_2.

Write: Date_2 to Date_3.

Write:/ Date_3.

so now, Date_3 will have the user format.

Regards

Sudheer