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

Former Member
0 Likes
731

Hi SDN's,

Can any one specify a function module which converts the date format from 20061010 to 10.10.2006

Urgent, please help

Thanks in advance

Pratyusha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
704

Hi

Please declare variable as sy-datum

ws_date type sy-datum.

move the date to this variable

write ws_date.

Also please check FM

CONVERSION_EXIT_PDATE_OUTPUT

Message was edited by: Dominic Pappaly

6 REPLIES 6
Read only

Former Member
0 Likes
704

Hello Usha,

<b>DATA: LV_DATUM(10).

Use WRITE SY-DATUM to LV_DATUM</b>

wirte: lv_datum.

if useful reward.

Vasanth

Read only

Former Member
0 Likes
704

Hi pratya,

1. we can do this directly also

2. data : d(10) type c.

write mydate to d.

regards,

amit m.

Read only

Former Member
0 Likes
705

Hi

Please declare variable as sy-datum

ws_date type sy-datum.

move the date to this variable

write ws_date.

Also please check FM

CONVERSION_EXIT_PDATE_OUTPUT

Message was edited by: Dominic Pappaly

Read only

Former Member
0 Likes
704

How about FM: CONVERSION_EXIT_PDATE_OUTPUT

Kind Regards

Eswar

Read only

Former Member
0 Likes
704

Hello,

declare a variable of type date format,

DATA: d type sy-datum.

d = '20061010'.

write: / d.

Regards,

Shehryar

Read only

0 Likes
704

Thnaks Dominic for the help.

And Thanks to all for ur replies

Regards

Pratyusha