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 option in layout

Former Member
0 Kudos

Hi everybody,

In my layout i have displayed the expiry date as 08.2007 & i want that to be changed as 08/07.

Is there any possibility?

Thanks & Regards,

Varadharajan S

1 ACCEPTED SOLUTION

Former Member
0 Kudos

If u have

v_date = '082007'

then write like this.

write:/ v_date0(2) ,'/' , v_date4(2).

4 REPLIES 4

Former Member
0 Kudos

If u have

v_date = '082007'

then write like this.

write:/ v_date0(2) ,'/' , v_date4(2).

Former Member
0 Kudos

HI

data: dat(7) type c.

dat = '08.2007'.

concatenate dat0(2) '/' dat3(4) into dat.

write dat.

regards

kishore

0 Kudos

Hi,

Thanks to Srinivas,Hari & Renjith...

Ur answers were very helpful to me to solve the problem

Thanks & Regards,

Varadharajan S

Former Member
0 Kudos

If you are looking for formatting date in a sapscript/smartform..use the control command SET DATE MASK

/: SET DATE MASK = 'date_mask'

try..

/: SET DATE MASK = 'MM/YY'.