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: 

changing date format

Former Member
0 Kudos
72

hi all,

how can we change the date format in differant ways,

i want the date in mm/dd/yyyy format

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos
50

check for transaction code SU3 and in DEFAULT tab

or if you are looking for change thru programatically then


write : sy-datum MM/DD/YYYY to v_date.

a®s

Edited by: a®s on Mar 24, 2008 11:56 AM

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos
51

check for transaction code SU3 and in DEFAULT tab

or if you are looking for change thru programatically then


write : sy-datum MM/DD/YYYY to v_date.

a®s

Edited by: a®s on Mar 24, 2008 11:56 AM

Former Member
0 Kudos
50

Rohit,

there are number of ways to do this...........

u can try using the fm

CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'

EXPORTING

DATE_INTERNAL = SY-DATUM

IMPORTING

DATE_EXTERNAL = l_date.

this function module converts date from 20080324 to external format which is specified in user profile

Former Member
0 Kudos
50

what is the date format u r getting originally?