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 urgently

Former Member
0 Likes
624

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..

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

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
597

Hi,

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

Reward if helpful..

Cheers,

SImha.

Read only

gopi_narendra
Active Contributor
0 Likes
597

use the function moduel convert_date_to_external.

Regards

- Gopi

Read only

Former Member
0 Likes
597

Hi,

Check with this.

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

Regards

Satish

Read only

Former Member
0 Likes
597

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